IEmailHelperService.CreateDistributionGroup Method
Requests the creation of a new e-mail distribution list from the specified data.
Namespace: Microsoft.SharePoint.EmailIntegration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function CreateDistributionGroup ( _
Alias As String, _
Name As String, _
Description As String, _
ContactCN As String, _
Info As RequestInfo, _
Flags As DistributionGroupFlags _
) As RequestResponse
'Usage
Dim instance As IEmailHelperService
Dim Alias As String
Dim Name As String
Dim Description As String
Dim ContactCN As String
Dim Info As RequestInfo
Dim Flags As DistributionGroupFlags
Dim returnValue As RequestResponse
returnValue = instance.CreateDistributionGroup(Alias, _
Name, Description, ContactCN, Info, _
Flags)
RequestResponse CreateDistributionGroup(
string Alias,
string Name,
string Description,
string ContactCN,
RequestInfo Info,
DistributionGroupFlags Flags
)
Parameters
Alias
Type: System.StringThe e-mail alias of the group.
Name
Type: System.StringThe user-friendly name of the group.
Description
Type: System.StringA description of the group.
ContactCN
Type: System.StringThe manager of the group, who is added as a member.
Info
Type: Microsoft.SharePoint.EmailIntegration.RequestInfoAn object containing information about the person who wants to create the group and his or her reasons.
Flags
Type: Microsoft.SharePoint.EmailIntegration.DistributionGroupFlagsA value indicating whether unauthenticated e-mail that is addressed to the group is deleted by Microsoft Exchange or sent to the group.
Return Value
Type: Microsoft.SharePoint.EmailIntegration.RequestResponse
A RequestResponse value that provides information about the request.
Remarks
ContactCN may be a null reference (Nothing in Visual Basic).