ExchangeDistributionList オブジェクト (Outlook)

ExchangeDistributionList オブジェクトは、Exchange の配布リストを表す AddressEntry に関する詳細情報を提供します。

注釈

ExchangeDistributionList は、 AddressEntry の派生クラスは、し、呼び出し元が AddressEntryQueryInterface を実行すると、 AddressEntry の代わりに返されます。

AddressEntry.Membersプロパティでは、配布リストの列挙のメンバーをサポートします。 ExchangeDistributionList は、 エイリアスコメント 、および PrimarySmtpAddress のファースト クラスのプロパティを追加します。 できますもプロパティにアクセスするその他の Exchange の配布リストに特定 PropertyAccessor オブジェクトを使用して、オブジェクト モデルで公開されているではないです。

コメントなどの一部のプロパティは、読み取り/書き込みプロパティです。 これらのプロパティを設定するには、適切な Exchange 管理者アカウントでコードを実行する必要があります。十分なアクセス許可がない場合、 ExchangeUser.Update メソッドを呼び出すと、"アクセス許可が拒否されました" というエラーが発生します。

次のコード サンプルでは、現在のユーザーのマネージャーが属する Exchange 配布リストの名前を取得する方法を示します。 ExchangeUser.GetExchangeUserManager メソッドを使用して、ユーザーのマネージャーに関する情報を取得し、 ExchangeUser.GetMemberOfList を使用して、配布リスト ( ExchangeDistributionList オブジェクトで表されます) を取得するのには、マネージャーが参加しています。

Sub ShowManagerDistLists() 
 Dim oAE As Outlook.AddressEntry 
 Dim oExUser As Outlook.ExchangeUser 
 Dim oDistListEntries As Outlook.AddressEntries 
 
 'Obtain the AddressEntry for CurrentUser 
 Set oExUser = _ 
 Application.Session.CurrentUser.AddressEntry.GetExchangeUser 
 
 'Obtain distribution lists that the user's manager has joined 
 Set oDistListEntries = oExUser.GetExchangeUserManager.GetMemberOfList 
 For Each oAE In oDistListEntries 
 If oAE.AddressEntryUserType = _ 
 olExchangeDistributionListAddressEntry Then 
 Debug.Print (oAE.name) 
 End If 
 Next 
End Sub 

メソッド

名前
Delete
詳細
GetContact
GetExchangeDistributionList
GetExchangeDistributionListMembers
GetExchangeUser
GetFreeBusy
GetMemberOfList
GetOwners
更新
GetUnifiedGroup
GetUnifiedGroupFromStore
IsUnifiedGroup

プロパティ

名前
Address
AddressEntryUserType
エイリアス
Application
クラス
コメント
DisplayType
ID
名前
Parent
PrimarySmtpAddress
PropertyAccessor
Session

関連項目

Outlook オブジェクト モデル リファレンス

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。