RangeAttribute RangeAttribute RangeAttribute RangeAttribute Class

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

Syntax

Declaration

public sealed class RangeAttributepublic sealed class RangeAttributePublic NotInheritable Class RangeAttribute

Constructors summary

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

Constructors

  • RangeAttribute(System.Int32,System.Int32)
    RangeAttribute(System.Int32,System.Int32)
    RangeAttribute(System.Int32,System.Int32)
    RangeAttribute(System.Int32,System.Int32)

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

    public RangeAttribute(System.Int32 minValue,System.Int32 maxValue)public RangeAttribute(System.Int32 minValue,System.Int32 maxValue)Public Function RangeAttribute(minValue As System.Int32,maxValue As System.Int32) As

    Parameters

    • minValue
      System.Int32
      System.Int32
      System.Int32
      System.Int32

      The minimum value allowed.

    • maxValue
      System.Int32
      System.Int32
      System.Int32
      System.Int32

      The maximum value allowed.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.AttributeUsageAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Foundation.Metadata.dll