ExpandDLType Class
The ExpandDLType class represents a request to expand a distribution list.
Inheritance Hierarchy
System.Object
ExchangeWebServices.BaseRequestType
ExchangeWebServices.ExpandDLType
Namespace: ExchangeWebServices
Assembly: EWS (in EWS.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class ExpandDLType _
Inherits BaseRequestType
'Usage
Dim instance As ExpandDLType
[SerializableAttribute]
public class ExpandDLType : BaseRequestType
Remarks
Both private and public distribution lists can be expanded.
Note
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.
Examples
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);
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also