命名空间: Microsoft.Data.Schema.Build
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Sub New ( _
allowNullOrEmpty As Boolean, _
minValue As Integer, _
maxValue As Integer _
)
public PropertyValidatorInt(
bool allowNullOrEmpty,
int minValue,
int maxValue
)
public:
PropertyValidatorInt(
bool allowNullOrEmpty,
int minValue,
int maxValue
)
new :
allowNullOrEmpty:bool *
minValue:int *
maxValue:int -> PropertyValidatorInt
public function PropertyValidatorInt(
allowNullOrEmpty : boolean,
minValue : int,
maxValue : int
)
参数
- allowNullOrEmpty
类型:System.Boolean
如果允许 nullnull 引用(在 Visual Basic 中为 Nothing) 值,则为 true;如果禁止 nullnull 引用(在 Visual Basic 中为 Nothing) 值,则为 false。
- minValue
类型:System.Int32
一个表示最小有效值的 int。
- maxValue
类型:System.Int32
一个表示最大有效值的 int。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。