Autodesk Vault ProfessionalVault API

Find(EntityCategory,PropertyConstraintType,Boolean) Method

Autodesk.DataManagement.Client.Framework.Vault.Currency.PropertiesPropertyDefinition.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 PropertyConstraint

Parameters

NameDescription
entityCategoryThe category to retrieve the constraint for
constraintTypeThe constraint type to retrieve a value for
useDefaultConstraintIfNecessaryIf 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

See Also