Export (0) Print
Expand All

ExpandDLType class

The ExpandDLType class represents a request to expand a distribution list.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

'Declaration
<SerializableAttribute> _
Public Class ExpandDLType _
	Inherits BaseRequestType
'Usage
Dim instance As ExpandDLType

Both private and public distribution lists can be expanded.

NoteNote

An error will occur if the EmailAddress that is specified in the request does not correspond to a distribution list, or if the ItemId that is specified in the request corresponds to a non-private distribution list.

The following code example shows you how a distribution list expansion request is created.

// Create an ExpandDLType.
ExpandDLType expandDl = new ExpandDLType();

// Set the e-mail address and routing type of the distribution list.
expandDl.Mailbox = new EmailAddressType();
expandDl.Mailbox.EmailAddress = "myDL@myDomain.com";

// Expand the distribution list.
ExpandDLResponseType expandDlResponse = esb.ExpandDL(expandDl);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft