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
-
Description
-
-
Access type: Read/write
-
Scripting data type: BSTR
-
// C++ method syntax HRESULT get_Description( [out] BSTR* pbstrDescription ); HRESULT put_Description( [in] BSTR bstrDescription );
The description of the organization.
-
-
FaxNumber
-
-
Access type: Read/write
-
Scripting data type: BSTR
-
// C++ method syntax HRESULT get_FaxNumber( [out] BSTR* pbstrFaxNumber ); HRESULT put_FaxNumber( [in] BSTR bstrFaxNumber );
The facsimile (fax) number of the organization.
-
-
LocalityName
-
-
Access type: Read/write
-
Scripting data type: BSTR
-
// C++ method syntax HRESULT get_LocalityName( [out] BSTR* pbstrLocalityName ); HRESULT put_LocalityName( [in] BSTR bstrLocalityName );
The name of the place in which the organization is located.
-
-
PostalAddress
-
-
Access type: Read/write
-
Scripting data type: BSTR
-
// C++ method syntax HRESULT get_PostalAddress( [out] BSTR* pbstrPostalAddress ); HRESULT put_PostalAddress( [in] BSTR bstrPostalAddress );
The postal address of the organization.
-
-
SeeAlso
-
-
Access type: Read/write
-
Scripting data type: VARIANT
-
// C++ method syntax HRESULT get_SeeAlso( [out] VARIANT* pvSeeAlso ); HRESULT put_SeeAlso( [in] VARIANT vSeeAlso );
An array of ADsPath names of other ADSI objects which may be relevant to this object.
-
-
TelephoneNumber
-
-
Access type: Read/write
-
Scripting data type: BSTR
-
// C++ method syntax HRESULT get_TelephoneNumber( [out] BSTR* pbstrTelephoneNumber ); HRESULT put_TelephoneNumber( [in] BSTR bstrTelephoneNumber );
The telephone number of the organization.
-
Examples
The following code example displays the description of a given organization. It assumes the underlying directory service supports grouping directory objects by organization.
Dim dom As IADsContainer
Dim dso As IADsOpenDSObject
Dim szUsername As String
Dim szPassword As String
On Error GoTo Cleanup
' Insert code to securely retrieve the user name and password
Set dso = GetObject("LDAP:")
Set dom = dso.OpenDSObject("LDAP://adsrv1/dc=Fabrikam, dc=Com", _
szUsername, szPassword,1)
dom.Filter = Array("organization")
For Each o In dom
MsgBox "Fax number of " & o.Name & " : " & o.Description
Next
Cleanup:
If (Err.Number<>0) Then
MsgBox("An error has occurred. " & Err.Number)
End If
Set dom = Nothing
Set dso = Nothing
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
DLL |
|
IID |
IID_IADsO is defined as A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503 |