RangeAttribute クラス

定義

データ フィールドの値の数値範囲制約を示します。

public ref class RangeAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class RangeAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Parameter)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class RangeAttribute : Attribute
function RangeAttribute(minValue, maxValue)
Public NotInheritable Class RangeAttribute
Inherits Attribute
継承
RangeAttribute
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.FoundationContract (v1.0 で導入)

コンストラクター

RangeAttribute(Int32, Int32)

指定した最小値と最大値を使用して、 属性の新しいインスタンスを作成して初期化します。

適用対象

こちらもご覧ください