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)

[SerializableAttribute]
public class ExpandDLType : BaseRequestType

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:
© 2014 Microsoft