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 RangeAttributepublic sealed class RangeAttribute

Constructors summary

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

Constructors

  • RangeAttribute(Int32, Int32)
    RangeAttribute(Int32, Int32)
    RangeAttribute(Int32, Int32)
    RangeAttribute(Int32, Int32)

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

    public RangeAttribute(Int32 minValue, Int32 maxValue)public New(Int32 minValue, Int32 maxValue)Public Sub New(minValue As Int32, maxValue As Int32)public RangeAttribute(Int32 minValue, Int32 maxValue)

    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