Freigeben über


RangeAttribute Klasse

Definition

Gibt die numerischen Bereichseinschränkungen für den Wert eines Datenfelds an.

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
Vererbung
RangeAttribute
Attribute

Windows-Anforderungen

Anforderungen Beschreibung
Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Konstruktoren

Name Beschreibung
RangeAttribute(Int32, Int32)

Erstellt und initialisiert eine neue instance des Attributs mit den angegebenen Minimal- und Höchstwerten.

Gilt für:

Weitere Informationen