SPGroup.CreateDistributionGroup method

Creates a distribution list for the group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void CreateDistributionGroup(
	string dlAlias
)

Parameters

dlAlias
Type: System.String

A string that contains the e-mail alias of the new distribution list.

The CreateDistributionGroup method throws an SPDistributionGroupException if the group already has a distribution list, or if an error occurs while the distribution list is created.

Show: