IAdmPropertyPatternConstraints

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

Inheritance: IEnumerable

Methods

  • Method

  • Description

  • Add()

  • Adds a new property 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 property constraint of a given category.

  • Remove()

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

  • GetEnumerator()

  • Retrieves an enumerator object for this collection of property pattern constraints.

Properties

  • Property

  • Description

  • Count

  • Gets the number of property constraints in the collection.

Details

Add()

Adds a new property 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

The constraintType parameter specifies the type of the constraint to create.


GetConstraint()

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

IAdmPropertyPatternConstraint GetConstraint(ADM_PROPERTYCONSTRAINTCATEGORY_ENUM constraintCategory)

Parameters

The constraintCategory parameter specifies the category of the constraint to return.


Remove()

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

void Remove(ADM_PROPERTYCONSTRAINTCATEGORY_ENUM constraintCategory)

Parameters

The constraintCategory parameter specifies the category of the constraint to remove.


GetEnumerator()

Retrieves an enumerator object for this collection of property pattern 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 property constraints in the collection.

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

Requirements

Minimum required version: 2009.1

See also