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: Microsoft.SharePoint.EmailIntegration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function ChangeContactsMembershipInDistributionGroup ( _
Alias As String, _
AddListForContacts As String(), _
DeleteListForContacts As String(), _
DeleteAllCurrentMembers As Boolean _
) As RequestStatus
'Usage
Dim instance As IEmailHelperService
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)
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: Microsoft.SharePoint.EmailIntegration.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.