SPGroup.CreateDistributionGroup Method
Creates a distribution list for the group.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Sub CreateDistributionGroup ( _
dlAlias As String _
)
'Usage
Dim instance As SPGroup
Dim dlAlias As String
instance.CreateDistributionGroup(dlAlias)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public void CreateDistributionGroup(
string dlAlias
)
Parameters
dlAlias
Type: System.StringA 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.