SharepointEmailWS.ChangeContactsMembershipInDistributionGroup method
Requests the addition and removal of contacts from the specified e-mail distribution group.
Namespace: WebSvcsharepointemailws
Assembly: STSSOAP (in STSSOAP.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/ChangeContactsMembershipInDistributionGroup", RequestNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", _
ResponseNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ChangeContactsMembershipInDistributionGroup ( _
Alias As String, _
AddListForContacts As String(), _
DeleteListForContacts As String(), _
DeleteAllCurrentMembers As Boolean _
) As RequestStatus
'Usage
Dim instance As SharepointEmailWS
Dim Alias As String
Dim AddListForContacts As String()
Dim DeleteListForContacts As String()
Dim DeleteAllCurrentMembers As Boolean
Dim returnValue As RequestStatus
returnValue = instance.ChangeContactsMembershipInDistributionGroup(Alias, _
AddListForContacts, DeleteListForContacts, _
DeleteAllCurrentMembers)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/ChangeContactsMembershipInDistributionGroup", RequestNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",
ResponseNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public RequestStatus ChangeContactsMembershipInDistributionGroup(
string Alias,
string[] AddListForContacts,
string[] DeleteListForContacts,
bool DeleteAllCurrentMembers
)
Parameters
Alias
Type: System.StringThe name of the distribution group.
AddListForContacts
Type: []The aliases of the contacts that are added to the group.
DeleteListForContacts
Type: []The aliases of the contacts that are removed from the group.
DeleteAllCurrentMembers
Type: System.BooleanA value indicating whether all members are removed from the group before the contacts in AddListForContacts 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 AddListForContacts are added.