IADs Interface

Inherited from

IDispatch

IUnknown

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

ADsPath

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

Class

Gets the name of the class of an object

Get

Gets the value for a specified property. The name of the property is passed as a parameter

GetEx

Retrieves the value for a single or multi-valued property by name

GetInfo

Reloads the object with the property values that exist within the directory service

GetInfoEx

Reloads specific property values for this object as they exist in the underlying directory service

GUID

Gets the unique identifier for objects of a class.

Name

Gets the relative name of an object as named within the underlying namespace. This name distinguishes this object from its siblings

Parent

Gets the Name of the parent container

Put

Sets the value for a specified property. The name of the property is passed as a parameter

PutEx

Sets the value for a single or multi-valued property by name

Schema

Gets the ADsPath string to the schema class definition object for this object

SetInfo

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