NumericAttribute 클래스

정의

숫자 필드 또는 속성에서 가능한 값에 대한 제한을 제공합니다.

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class NumericAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type NumericAttribute = class
    inherit Attribute
Public Class NumericAttribute
Inherits Attribute
상속
NumericAttribute
특성

설명

기본적으로 제한은 기본 필드 형식의 최소 및 최대값입니다.

생성자

NumericAttribute(Double, Double)

숫자 필드에 대해 가능한 값의 범위를 지정합니다.

필드

Max

가능한 최대 값입니다.

Min

최소 가능한 값입니다.

적용 대상