IADs Property Methods

Property methods take the form of either get_<property> or put_<property>. The property methods of the IADs interface get or set the properties described below. For more information, see Interface Property Methods.

Properties in Vtable Order

Property Access Method Prototype
Class R/O HRESULT get_Class
([out] BSTR *pbstrClass);
GUID R/O HRESULT get_GUID
([out] BSTR *pbstrGUID);
Name R/O HRESULT get_Name
([out] BSTR *pbstrName);
ADsPath R/O HRESULT get_ADsPath
([out] BSTR *pbstrADsPath);
Parent R/O HRESULT get_Parent
([out] BSTR *pbstrParent);
Schema R/O HRESULT get_Schema
([out] BSTR *pbstrSchema);

Property Descriptions

Class
Gets the name of the schema class of this object.
GUID
Gets an optional provider-specific unique identifier for objects of this schema class.

Notes to Implementers  You can use this property to uniquely identify the schema class of this object. If you do not provide a GUID, return E_ADS_PROPERTY_NOT_SUPPORTED when this property is read.

Name
Gets the relative name of the object as named within the underlying directory service. This is the leaf name of this object, which distinguishes this object from its siblings.
ADsPath
Gets the ADsPath string of the object that uniquely identifies the object in a networked environment. The object can always be retrieved using this path.
Parent
Gets the ADsPath string of the parent container. There is no implied ability in Active Directory to form the ADsPath of a given object by concatenating the Parent and Name properties. While this operation might work in some providers, it is not guaranteed to work for other implementations. The ADsPath is guaranteed to be valid and should always be used to retrieve an object's interface pointer.
Schema
Gets the ADsPath string of the object that supports the IADsClass interface for this schema class.

See Also

IADsContainer