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

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

IntegerValidatorAttribute.ExcludeRange プロパティ

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

整数を、MinValue プロパティ値と MaxValue プロパティ値によって定義され範囲内含めるか、その範囲から除外するかを示す値を取得または設定します

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

Dim instance As IntegerValidatorAttribute
Dim value As Boolean

value = instance.ExcludeRange

instance.ExcludeRange = value
public bool ExcludeRange { get;
 set; }
public:
property bool ExcludeRange {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ExcludeRange ()

/** @property */
public void set_ExcludeRange (boolean value)
public function get ExcludeRange
 () : boolean

public function set ExcludeRange
 (value : boolean)

プロパティ
値が除外される必要がある場合trueそれ以外場合false既定値false です。

解説解説

範囲には、MinValue プロパティ値と MaxValue プロパティ値が含まれます。ExcludeRange プロパティ値が true場合指定できるのは範囲外の値です。

使用例使用例

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

<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 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からIntegerValidatorAttribute.ExcludeRange プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からIntegerValidatorAttribute.ExcludeRange プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からIntegerValidatorAttribute.ExcludeRange プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS