Find(EntityCategory,PropertyConstraintType,Boolean) Method
Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties›PropertyDefinition.DefinitionConstraints
Retrieves a specific constraint type for a specific category (ie. Fetch the MinimumLength restriction for the Assemblies category)
Syntax
public PropertyConstraint Find(
EntityCategory entityCategory,
PropertyConstraintType constraintType,
System.bool useDefaultConstraintIfNecessary
)Public Overloads Function Find( _
ByVal entityCategory As EntityCategory, _
ByVal constraintType As PropertyConstraintType, _
ByVal useDefaultConstraintIfNecessary As System.Boolean _
) As PropertyConstraintParameters
| Name | Description |
|---|---|
| entityCategory | The category to retrieve the constraint for |
| constraintType | The constraint type to retrieve a value for |
| useDefaultConstraintIfNecessary | If true and there is no constraint for the specified category, we will return the constraint on the PropertyDefinition itself |
Return Value
The PropertyConstraint object, or null if not found