共用方式為


SharepointEmailWS.CreateContact Method

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

Namespace:  [Sharepointemailws Web service]
Web service reference: http://Site/_vti_bin/Sharepointemailws.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/CreateContact", RequestNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CreateContact ( _
    Alias As String, _
    FirstName As String, _
    LastName As String, _
    ForwardingEmail As String, _
    Flags As ContactFlags _
) As RequestStatus
'Usage
Dim instance As SharepointEmailWS
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)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePoint/SharepointEmailWS/CreateContact", RequestNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePoint/SharepointEmailWS/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public 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: [Sharepointemailws Web service].RequestStatus
A RequestStatus value that reports the outcome of the operation.

See Also

Reference

SharepointEmailWS Class

SharepointEmailWS Members

Sharepointemailws Web Service