Share via


SharepointEmailWS.ChangeUsersMembershipInDistributionGroup method

Requests the addition and removal of users from the specified e-mail distribution group.

Namespace:  WebSvcsharepointemailws
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/ChangeUsersMembershipInDistributionGroup", RequestNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ChangeUsersMembershipInDistributionGroup ( _
    Alias As String, _
    AddNt4NameList As String(), _
    DeleteNt4NameList As String(), _
    DeleteAllCurrentMembers As Boolean _
) As RequestStatus
'Usage
Dim instance As SharepointEmailWS
Dim Alias As String
Dim AddNt4NameList As String()
Dim DeleteNt4NameList As String()
Dim DeleteAllCurrentMembers As Boolean
Dim returnValue As RequestStatus

returnValue = instance.ChangeUsersMembershipInDistributionGroup(Alias, _
    AddNt4NameList, DeleteNt4NameList, _
    DeleteAllCurrentMembers)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/ChangeUsersMembershipInDistributionGroup", RequestNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public RequestStatus ChangeUsersMembershipInDistributionGroup(
    string Alias,
    string[] AddNt4NameList,
    string[] DeleteNt4NameList,
    bool DeleteAllCurrentMembers
)

Parameters

  • AddNt4NameList
    Type: []

    The users that are added to the group.

  • DeleteNt4NameList
    Type: []

    The users that are removed from the group.

  • DeleteAllCurrentMembers
    Type: System.Boolean

    A value indicating whether all members are removed from the group before the users in AddNt4NameList are added.

Return value

Type: WebSvcsharepointemailws.RequestStatus
A RequestStatus value that reports the outcome of the operation.

Remarks

If DeleteAllCurrentMembers is true, all current members are deleted and then all contacts in AddNt4NameList are added.

The AddNt4NameList and DeleteNt4NameList names are in the format domain/username.

See also

Reference

SharepointEmailWS class

SharepointEmailWS members

WebSvcsharepointemailws namespace