RegexStringValidatorAttribute コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RegexStringValidatorAttribute コンストラクタの意味・解説 

RegexStringValidatorAttribute コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

RegexStringValidatorAttribute オブジェクト新しインスタンス初期化します。

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Dim regex As String

Dim instance As New RegexStringValidatorAttribute(regex)
public RegexStringValidatorAttribute (
    string regex
)
public:
RegexStringValidatorAttribute (
    String^ regex
)
public RegexStringValidatorAttribute (
    String regex
)
public function RegexStringValidatorAttribute
 (
    regex : String
)

パラメータ

regex

正規表現検証使用する文字列

解説解説
使用例使用例

RegexStringValidatorAttribute コンストラクタ使用する例を次に示します

<ConfigurationProperty("alias2", _
DefaultValue:="alias.txt", _
IsRequired:=True, _
IsKey:=False), _
RegexStringValidator("\w+\S*")> _
Public Property Alias2() As
 String
    Get
        Return CStr(Me("alias2"))
    End Get
    Set(ByVal value As String)
        Me("alias2") = value
    End Set
End Property
[ConfigurationProperty("alias2", DefaultValue = "alias.txt",
    IsRequired = true, IsKey = false)]
[RegexStringValidator(@"\w+\S*")]
public string Alias2
{
    get
    {
        return (string)this["alias2"];
    }
    set
    {
        this["alias2"] = value;
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RegexStringValidatorAttribute クラス
RegexStringValidatorAttribute メンバ
System.Configuration 名前空間
RegexStringValidator クラス



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「RegexStringValidatorAttribute コンストラクタ」の関連用語

RegexStringValidatorAttribute コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RegexStringValidatorAttribute コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS