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 organizational unit. |
FaxNumber
[Visual Basic] [C++] |
The fax number of the organizational unit. |
LocalityName
[Visual Basic] [C++] |
The name of the geographic region of the organizational unit. |
PostalAddress
[Visual Basic] [C++] |
The postal address of the organizational unit. |
TelephoneNumber
[Visual Basic] [C++] |
The telephone number of the organizational unit. |
SeeAlso
[Visual Basic] [C++] |
An array of ADsPath names of other directory objects which may be relevant to this object. |
The following code example 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 Cleanup: If(Err.Number<>0) Then MsgBox("An error has occurred. " & Err.Number) End If Set dom = Nothing Set ou = Nothing
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.