Share via


SPGroup.CreateDistributionGroup method

Creates a distribution list for the group.

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

Syntax

'Declaration
Public Sub CreateDistributionGroup ( _
    dlAlias As String _
)
'Usage
Dim instance As SPGroup
Dim dlAlias As String

instance.CreateDistributionGroup(dlAlias)
public void CreateDistributionGroup(
    string dlAlias
)

Parameters

  • dlAlias
    Type: System.String

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

Remarks

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.

See also

Reference

SPGroup class

SPGroup members

Microsoft.SharePoint namespace