Platform SDK: Active Directory, ADSI, and Directory Services |
The property methods of the IADsOU interface get or set the properties described in the following table. For more information, see Interface Property Methods.
Property | Description |
---|---|
BusinessCategory
[Visual Basic] [C++] |
A string indicating the general business function(s) performed by the organizational unit, for example "Accounting". |
Description
[Visual Basic] [C++] |
The text that describes the organization unit. |
FaxNumber
[Visual Basic] [C++] |
The fax number of the organization unit. |
LocalityName
[Visual Basic] [C++] |
The name of the geographical region of the organization unit. |
PostalAddress
[Visual Basic] [C++] |
The postal address of the organization unit. |
TelephoneNumber
[Visual Basic] [C++] |
The telephone number of the organization unit. |
SeeAlso
[Visual Basic] [C++] |
An array of ADsPath names of other directory objects which may be relevant to this object. |
The following Visual Basic code snippet displays the description of a given organization unit. It assumes that the underlying directory service supports grouping of directory objects by organization unit.
Dim dom as IADsDomain Dim ou as IADsOU Set dom = GetObject("LDAP://server1/domain1") dom.filter = Array("organizationalUnit") For each ou in dom MsgBox ou.BusinessCategory & ": " & ou.Description Next