Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Requests the addition and removal of contacts from the specified e-mail distribution group.
Namespace: [Sharepointemailws Web service]
Web service reference: http://Site/_vti_bin/Sharepointemailws.asmx
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: [Sharepointemailws Web service].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.