RangeAttribute.OperandType 属性

定义

获取必须验证其值的数据字段的类型。Gets the type of the data field whose value must be validated.

public:
 property Type ^ OperandType { Type ^ get(); };
public Type OperandType { get; }
member this.OperandType : Type
Public ReadOnly Property OperandType As Type

属性值

Type

必须验证其值的数据字段的类型。The type of the data field whose value must be validated.

注解

要测试的对象必须实现 IComparable 接口。The object to be tested must implement the IComparable interface.

适用于