IADsO 属性方法

IADsO 接口的属性方法获取或设置下表中所述的属性。 有关详细信息,请参阅 Interface 属性方法

属性

描述

组织的说明。

访问类型:读/写

脚本数据类型: BSTR

// C++ method syntax
HRESULT get_Description(
  [out] BSTR* pbstrDescription
);
HRESULT put_Description(
  [in] BSTR bstrDescription
);

FaxNumber

组织的传真(传真)编号。

访问类型:读/写

脚本数据类型: BSTR

// C++ method syntax
HRESULT get_FaxNumber(
  [out] BSTR* pbstrFaxNumber
);
HRESULT put_FaxNumber(
  [in] BSTR bstrFaxNumber
);

LocalityName

组织所在的位置的名称。

访问类型:读/写

脚本数据类型: BSTR

// C++ method syntax
HRESULT get_LocalityName(
  [out] BSTR* pbstrLocalityName
);
HRESULT put_LocalityName(
  [in] BSTR bstrLocalityName
);

PostalAddress

组织的邮政地址。

访问类型:读/写

脚本数据类型: BSTR

// C++ method syntax
HRESULT get_PostalAddress(
  [out] BSTR* pbstrPostalAddress
);
HRESULT put_PostalAddress(
  [in] BSTR bstrPostalAddress
);

SeeAlso

可能与此对象相关的其他 ADSI 对象的 ADsPath 名称数组。

访问类型:读/写

脚本数据类型: VARIANT

// C++ method syntax
HRESULT get_SeeAlso(
  [out] VARIANT* pvSeeAlso
);
HRESULT put_SeeAlso(
  [in] VARIANT vSeeAlso
);

TelephoneNumber

组织的电话号码。

访问类型:读/写

脚本数据类型: BSTR

// C++ method syntax
HRESULT get_TelephoneNumber(
  [out] BSTR* pbstrTelephoneNumber
);
HRESULT put_TelephoneNumber(
  [in] BSTR bstrTelephoneNumber
);

示例

下面的代码示例显示给定组织的说明。 它假定基础目录服务支持按组织对目录对象进行分组。

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

要求

要求
最低受支持的客户端
Windows Vista
最低受支持的服务器
Windows Server 2008
标头
Iads.h
DLL
Activeds.dll
IID
IID_IADsO定义为 A1CD2DC6-EFFE-11CF-8ABC-00C04FD8D503

另请参阅

IADsO

Interface 属性方法