Partilhar via


IEmailHelperService.CreateContact Method

Requests the creation of a new contact from the specified name and data.

Namespace:  Microsoft.SharePoint.EmailIntegration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Function CreateContact ( _
    Alias As String, _
    FirstName As String, _
    LastName As String, _
    ForwardingEmail As String, _
    Flags As ContactFlags _
) As RequestStatus
'Usage
Dim instance As IEmailHelperService
Dim Alias As String
Dim FirstName As String
Dim LastName As String
Dim ForwardingEmail As String
Dim Flags As ContactFlags
Dim returnValue As RequestStatus

returnValue = instance.CreateContact(Alias, _
    FirstName, LastName, ForwardingEmail, _
    Flags)
RequestStatus CreateContact(
    string Alias,
    string FirstName,
    string LastName,
    string ForwardingEmail,
    ContactFlags Flags
)

Parameters

  • ForwardingEmail
    Type: System.String

    The e-mail address of the contact.

Return Value

Type: Microsoft.SharePoint.EmailIntegration.RequestStatus
A RequestStatus value that reports the outcome of the operation.

See Also

Reference

IEmailHelperService Interface

IEmailHelperService Members

Microsoft.SharePoint.EmailIntegration Namespace