Share via


PropertyValidatorInt Constructor (Boolean, array<Int32 )

Initializes a new instance of the PropertyValidatorInt class by using the provided values.

Namespace:  Microsoft.Data.Schema.Build
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Sub New ( _
    allowNullOrEmpty As Boolean, _
    ParamArray validValues As Integer() _
)
public PropertyValidatorInt(
    bool allowNullOrEmpty,
    params int[] validValues
)
public:
PropertyValidatorInt(
    bool allowNullOrEmpty, 
    ... array<int>^ validValues
)
new : 
        allowNullOrEmpty:bool * 
        validValues:int[] -> PropertyValidatorInt
public function PropertyValidatorInt(
    allowNullOrEmpty : boolean, 
    ... validValues : int[]
)

Parameters

  • allowNullOrEmpty
    Type: System.Boolean
    true to allow a nulla null reference (Nothing in Visual Basic) value; false to disallow a nulla null reference (Nothing in Visual Basic) value.
  • validValues
    Type: array<System.Int32[]
    One or more parameters that represent valid values of type int.

.NET Framework Security

See Also

Reference

PropertyValidatorInt Class

PropertyValidatorInt Overload

Microsoft.Data.Schema.Build Namespace