LongValidator コンストラクター

定義

LongValidator クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
LongValidator(Int64, Int64)

LongValidator クラスの新しいインスタンスを初期化します。

LongValidator(Int64, Int64, Boolean)

LongValidator クラスの新しいインスタンスを初期化します。

LongValidator(Int64, Int64, Boolean, Int64)

LongValidator クラスの新しいインスタンスを初期化します。

LongValidator(Int64, Int64)

ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs

LongValidator クラスの新しいインスタンスを初期化します。

public:
 LongValidator(long minValue, long maxValue);
public LongValidator(long minValue, long maxValue);
new System.Configuration.LongValidator : int64 * int64 -> System.Configuration.LongValidator
Public Sub New (minValue As Long, maxValue As Long)

パラメーター

minValue
Int64

Int64値の最小長を指定するlong値。

maxValue
Int64

Int64値の最大長を指定するlong値。

注釈

LongValidator コンストラクターは、検証される長い値が最小長と最大長の両方に準拠していることを確認します。

適用対象

LongValidator(Int64, Int64, Boolean)

ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs

LongValidator クラスの新しいインスタンスを初期化します。

public:
 LongValidator(long minValue, long maxValue, bool rangeIsExclusive);
public LongValidator(long minValue, long maxValue, bool rangeIsExclusive);
new System.Configuration.LongValidator : int64 * int64 * bool -> System.Configuration.LongValidator
Public Sub New (minValue As Long, maxValue As Long, rangeIsExclusive As Boolean)

パラメーター

minValue
Int64

Int64値の最小長を指定するlong値。

maxValue
Int64

Int64値の最大長を指定するlong値。

rangeIsExclusive
Boolean

検証範囲が排他的かどうかを示す Boolean 値。

次のコード例は、 LongValidator コンストラクターの使用方法を示しています。 このコード例は、 LongValidator クラスに提供されるより大きな例の一部です。

// Create Long and Validator.
Int64 testLong =    17592186044416;
Int64 minLongVal =  1099511627776;
Int64 maxLongVal =  281474976710656;
LongValidator myLongValidator = 
 new LongValidator(minLongVal, maxLongVal, false);
' Create Long and Validator.
Dim testLong As Int64 = 17592186044416
Dim minLongVal As Int64 = 1099511627776
Dim maxLongVal As Int64 = 281474976710656
Dim myLongValidator As LongValidator = _
 New LongValidator(minLongVal, maxLongVal, False)

注釈

LongValidator コンストラクターを使用すると、検証範囲が排他的かどうかだけでなく、最小値と最大値の両方のInt64値がチェックされます。 rangeIsExclusive パラメーターが true に設定されている場合、Int64の値はminValuemaxValueの間にすることはできません。

適用対象

LongValidator(Int64, Int64, Boolean, Int64)

ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs
ソース:
LongValidator.cs

LongValidator クラスの新しいインスタンスを初期化します。

public:
 LongValidator(long minValue, long maxValue, bool rangeIsExclusive, long resolution);
public LongValidator(long minValue, long maxValue, bool rangeIsExclusive, long resolution);
new System.Configuration.LongValidator : int64 * int64 * bool * int64 -> System.Configuration.LongValidator
Public Sub New (minValue As Long, maxValue As Long, rangeIsExclusive As Boolean, resolution As Long)

パラメーター

minValue
Int64

Int64値の最小長を指定するlong値。

maxValue
Int64

Int64値の最大長を指定するlong値。

rangeIsExclusive
Boolean

検証範囲が排他的かどうかを示す Boolean 値。

resolution
Int64

照合する必要がある特定の値を指定する Int64 値。

例外

resolution0 以下です。

-又は-

maxValueminValue未満です。

注釈

resolutionを指定する場合、検証に合格するには、検証されるInt64値がその値と等しい必要があります。

適用対象