IntegerValidatorAttribute.MinValue プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IntegerValidatorAttribute.MinValue プロパティの意味・解説 

IntegerValidatorAttribute.MinValue プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

プロパティ指定できる最小値取得または設定します

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

Dim instance As IntegerValidatorAttribute
Dim value As Integer

value = instance.MinValue

instance.MinValue = value
public int MinValue { get;
 set; }
/** @property */
public int get_MinValue ()

/** @property */
public void set_MinValue (int
 value)

プロパティ
指定できる最小値を示す整数

解説解説
使用例使用例

MinValue プロパティ使用する方法の例を次に示します

<ConfigurationProperty("maxAttempts", _
DefaultValue:=101, _
IsRequired:=True), _
IntegerValidator(MinValue:=1, _
MaxValue:=100, _
ExcludeRange:=True)> _
Public Property MaxAttempts() As
 Integer
    Get
        Return Fix(Me("maxAttempts"))
    End Get
    Set(ByVal value As Integer)
        Me("maxAttempts") = value
    End Set
End Property
[ConfigurationProperty("maxAttempts", DefaultValue = 101,
    IsRequired = true)]
[IntegerValidator(MinValue = 1, MaxValue = 100,
    ExcludeRange = true)]
public int MaxAttempts
{
    get
    {
        return (int)this["maxAttempts"];
    }
    set
    {
        this["maxAttempts"] = value;
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IntegerValidatorAttribute クラス
IntegerValidatorAttribute メンバ
System.Configuration 名前空間



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

辞書ショートカット

すべての辞書の索引

IntegerValidatorAttribute.MinValue プロパティのお隣キーワード
検索ランキング

   

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



IntegerValidatorAttribute.MinValue プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS