Partilhar via


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

  • ContactCN
    Type: System.String

    The manager of the group, who is added as a member.

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).

See Also

Reference

SharepointEmailWS Class

SharepointEmailWS Members

Sharepointemailws Web Service