The IADsProperty interface is designed to manage a single attribute definition for a schema class object. An attribute definition specifies the minimum and maximum values of a property, its syntax, and whether the property supports multiple values. Other interfaces involved in schema management include IADsClass and IADsSyntax.
The IADsProperty interface exposes methods to describe a property by name, syntax, value ranges, and any other defined attributes. A property can have multiple names associated with it, but providers must ensure that each name is unique.
Use the IADsProperty interface to determine at run time the attribute definition of a property supported by a directory service object.
To determine the attribute definition at run time
- Bind to the schema class object of the ADSI object.
- Enumerate mandatory or optional attributes accessible from the schema class object. Skip this step if you know that the object supports the attribute of your interest.
- Bind to the schema container of the schema class object you obtained in first step.
- Retrieve the attribute definition object of the property of interest from the schema container.
- Examine the attribute definition of the property. You may have to also inspect the syntax object.
The IADsProperty interface has these methods.
|IADsProperty::Qualifiers||Returns a collection of ADSI objects that describe additional qualifiers of this property.|
The IADsProperty interface methods can add new attributes and property objects to a provider-specific implementation.
The following code example shows the procedure above for applying the IADsProperty interface to determine attribute definitions of a property.
Dim obj As IADs Dim cl As IADsClass Dim pr As IADsProperty Dim sy As IADsSyntax Dim sc As IADsContainer
|Windows version||Windows Vista Windows Server 2008|