Platform SDK: Active Directory, ADSI, and Directory Services |
The property methods of the IADsO interface get or set the properties described in the following table. For more information, see Interface Property Methods.
Property | Description |
---|---|
Description
[Visual Basic] [C++] |
The description of the organization. |
FaxNumber
[Visual Basic] [C++] |
The fax number of the organization. |
LocalityName
[Visual Basic] [C++] |
The name of the region in which the organization is located. |
PostalAddress
[Visual Basic] [C++] |
The postal address of the organization. |
TelephoneNumber
[Visual Basic] [C++] |
The telephone number of the organization. |
SeeAlso
[Visual Basic] [C++] |
An array of ADsPath names of other ADSI objects which may be relevant to this object. |
The following Visual Basic code snippet displays the description of a given organization. It assumes that the underlying directory service supports grouping directory objects by organization.
Dim dom as IADsContainer Dim dso as IADsOpenDSObject Set dso = GetObject("LDAP:") Set dom = dso.OpenDSObject("LDAP://adsrv1/dc=Microsoft, dc=Com", "jsmith","passwd",1) dom.Filter = Array("organization") For each o in dom MsgBox "Fax number of " & o.Name & " : " & o.Description Next