IAdmPropertyPatternConstraints

The IAdmPropertyPatternConstraints interface represents a collection of constraints applied to a directory object property.

Inheritance: IEnumerable

Methods

  • Method

  • Description

  • Add()

  • Adds a new constraint to the collection.

  • Clear()

  • Removes all constraints from the collection.

  • Create()

  • Creates a new constraint of the specified type that can be added to the collection.

  • GetConstraint()

  • Returns a constraint of a given category.

  • Remove()

  • Removes the constraint of a given category from the collection.

  • GetEnumerator()

  • Retrieves an enumerator object for this collection of constraints.

Properties

  • Property

  • Description

  • Count

  • Gets the number of constraints in the collection.

Details

Add()

Adds a new constraint to the collection.

void Add(IAdmPropertyPatternConstraint constraint)

Clear()

Removes all constraints from the collection.

void Clear()

Create()

Creates a new constraint of the specified type that can be added to the collection.

IAdmPropertyPatternConstraint Create(ADM_PROPERTYCONSTRAINTTYPE_ENUM constraintType)

Parameters

  • constraintType – the type of the constraint to create.

GetConstraint()

Returns a constraint of the given category. If the collection does not contain a constraint of the category, the method returns null.

IAdmPropertyPatternConstraint GetConstraint(ADM_PROPERTYCONSTRAINTCATEGORY_ENUM constraintCategory)

Parameters

  • constraintCategory – the category of the constraint to return.

Remove()

Removes the constraint of a given category from the collection.

void Remove(ADM_PROPERTYCONSTRAINTCATEGORY_ENUM constraintCategory)

Parameters

  • constraintCategory – the category of the constraint to remove.

GetEnumerator()

Retrieves an enumerator object for this collection of constraints. The enumerator object implements the IEnumerator interface that can be used to enumerate property constraints in foreach loops.

IEnumerator GetEnumerator()

Count

Gets the number of constraints in the collection.

  • Type:
  • int
  • Access:
  • Read-only

Requirements

Minimum required version: 2009.1

See also