IEmailHelperService.ModifyContact method
Requests a change in information about a contact.
Namespace: Microsoft.SharePoint.EmailIntegration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function ModifyContact ( _
OldAlias As String, _
NewAlias As String, _
FirstName As String, _
LastName As String, _
ForwardingEmail As String, _
Flags As ContactFlags _
) As RequestStatus
'Usage
Dim instance As IEmailHelperService
Dim OldAlias As String
Dim NewAlias As String
Dim FirstName As String
Dim LastName As String
Dim ForwardingEmail As String
Dim Flags As ContactFlags
Dim returnValue As RequestStatus
returnValue = instance.ModifyContact(OldAlias, _
NewAlias, FirstName, LastName, ForwardingEmail, _
Flags)
RequestStatus ModifyContact(
string OldAlias,
string NewAlias,
string FirstName,
string LastName,
string ForwardingEmail,
ContactFlags Flags
)
Parameters
OldAlias
Type: System.StringThe current e-mail alias of the contact.
NewAlias
Type: System.StringThe e-mail alias that the contact is to have hereafter. It can be the same as OldAlias.
FirstName
Type: System.StringThe first name of the contact.
LastName
Type: System.StringThe last name of the contact.
ForwardingEmail
Type: System.StringThe e-mail address of the contact.
Flags
Type: Microsoft.SharePoint.EmailIntegration.ContactFlagsA value indicating whether unauthenticated e-mail that is addressed to the contact is deleted by Microsoft Exchange or sent to the contact.
Return value
Type: Microsoft.SharePoint.EmailIntegration.RequestStatus
A RequestStatus value that reports the outcome of the operation.