'Declaration
Public Overloads Shared Function GetDataRestriction( _ ByVal primitiveValue As IPrimitiveValue, _ ByVal type As DataValidationType _ ) As DataRestrictions
'Usage
Dim primitiveValue As IPrimitiveValue Dim type As DataValidationType Dim value As DataRestrictions value = DataValidations.GetDataRestriction(primitiveValue, type)
public static DataRestrictions GetDataRestriction( IPrimitiveValue primitiveValue, DataValidationType type )
Parameters
- primitiveValue
- An GrapeCity.CalcEngine.IPrimitiveValue object indicates the primitive value.
- type
- An enum indicates the type of data validation used to validate user input.
Return Value
A DataRestrictions value represents the restriction reason of the specified value.