Share via


RangeAttribute Class

Definition

Indicates the numeric range constraints for the value of a data field.

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
Inheritance
RangeAttribute
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Constructors

RangeAttribute(Int32, Int32)

Creates and initializes a new instance of the attribute with the specified minimum and maximum values.

Applies to

See also