SharepointEmailWS.CreateDistributionGroup Method
Requests the creation of a new e-mail distribution list from the specified data.
Namespace: [Sharepointemailws Web service]
Web service reference: http://Site/_vti_bin/Sharepointemailws.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/CreateDistributionGroup", RequestNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", _
ResponseNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public 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 SharepointEmailWS
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)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/CreateDistributionGroup", RequestNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",
ResponseNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public 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: [Sharepointemailws Web service].RequestInfoAn object containing information about the person who wants to create the group and his or her reasons.
Flags
Type: [Sharepointemailws Web service].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: [Sharepointemailws Web service].RequestResponse
A RequestResponse value that provides information about the request.
Remarks
ContactCN may be a null reference (Nothing in Visual Basic).