Inherited from
This is the root of all interfaces. All objects in DirectScript support this interface. You can use this interface to get some basic properties (like name, class, and parent) of any object.
Property/Method |
Description |
Gets the ADsPath string of an object that uniquely identifies the object in a heterogeneous environment. The object can always be retrieved using this path |
|
Gets the name of the class of an object |
|
Gets the value for a specified property. The name of the property is passed as a parameter |
|
Retrieves the value for a single or multi-valued property by name |
|
Reloads the object with the property values that exist within the directory service |
|
Reloads specific property values for this object as they exist in the underlying directory service |
|
Gets the unique identifier for objects of a class. |
|
Gets the relative name of an object as named within the underlying namespace. This name distinguishes this object from its siblings |
|
Gets the Name of the parent container |
|
Sets the value for a specified property. The name of the property is passed as a parameter |
|
Sets the value for a single or multi-valued property by name |
|
Gets the ADsPath string to the schema class definition object for this object |
|
Mechanism for committing changes on an object. If properties have been changed on an object, the SetInfo method will cause the properties to be changed within the directory service |
Example
This example demonstrates the use of IADs Properties and
Methods.
Dim NTObject As IADs
'Bind to the known NT domain object.
'Here MSFT is your domain name.
Set NTObject = GetObject("NTDS://MSFT")
'Debug.Print to print the name ADsPath to the debug window.
Debug.Print NTObject.Name
Debug.Print NTObject.ADsPath
'Release the Domain Object after finishing its use.
Set NTObject = Nothing
'Now, you can bind to the known NT user object.
'Here MSFT is your domain name and Jane is a user in MSFT
domain.
Set NTObject = GetObject("NTDS://MSFT/Jane")
'Debug.Print to print the name & ADsPath to the debug
window.
Debug.Print NTObject.Name
Debug.Print NTObject.ADsPath