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)

지정된 최소값과 최대값을 사용하여 특성의 새 instance 만들고 초기화합니다.

적용 대상

추가 정보