Platform SDK: Active Directory, ADSI, and Directory Services

IADsO Property Methods

The property methods of the IADsO interface get or set the properties described in the following table. For more information, see Interface Property Methods.

Properties in Vtable Order

Property Description
Description

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_Description
([out] BSTR *pbstrDescription);


HRESULT put_Description
([in] BSTR bstrDescription);

The description of the organization.
FaxNumber

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_FaxNumber
([out] BSTR *pbstrFaxNumber);


HRESULT put_FaxNumber
([in] BSTR bstrFaxNumber);

The fax number of the organization.
LocalityName

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_LocalityName
([out] BSTR *pbstrLocalityName);


HRESULT put_LocalityName
([in] BSTR bstrLocalityName);

The name of the region in which the organization is located.
PostalAddress

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_PostalAddress
([out] BSTR *pbstrPostalAddress);


HRESULT put_PostalAddress
([in] BSTR bstrPostalAddress);

The postal address of the organization.
TelephoneNumber

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_TelephoneNumber
([out] BSTR *pbstrTelephoneNumber);


HRESULT put_TelephoneNumber
([in] BSTR bstrTelephoneNumber);

The telephone number of the organization.
SeeAlso

[Visual Basic]
Access: Read/Write
Data Type: BSTR

[C++]
HRESULT get_SeeAlso
([out] BSTR *pbstrSeeAlso);


HRESULT put_SeeAlso
([in] BSTR bstrSeeAlso);

An array of ADsPath names of other ADSI objects which may be relevant to this object.

Example Code [Visual Basic]

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

See Also

IADsO, Interface Property Methods