Edit

Share via


ExpandDLType Class

Definition

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

public ref class ExpandDLType : ExchangeWebServices::BaseRequestType
public class ExpandDLType : ExchangeWebServices.BaseRequestType
Public Class ExpandDLType
Inherits BaseRequestType
Inheritance
ExpandDLType

Examples

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

// Create an ExpandDLType.
ExpandDLType <span class="label">expandDl</span> = new ExpandDLType();

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

// Expand the distribution list.
ExpandDLResponseType expandDlResponse = esb.ExpandDL(<span class="label">expandDl</span>);

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.

Constructors

ExpandDLType()

The ExpandDLType constructor initializes a new instance of the ExpandDLType type.

Properties

Mailbox

The Mailbox property gets or sets the identifier of the distribution list to expand. This property is required. This is a read/write property.

Applies to