MicrosoftOfficeLiveBusinessContactManager.AddContact Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Add a new contact item. Returns the ID for the new contact.

Namespace:  WebBCM
Assembly:  OfficeLive (in OfficeLive.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddContact", RequestNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    ResponseNamespace := "http://schemas.microsoft.com/officelive/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("UserHeaderValue")> _
<SoapHeaderAttribute("AuditHeaderValue")> _
Public Function AddContact ( _
    Contact As Contact _
) As Integer
'Usage
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim Contact As Contact
Dim returnValue As Integer

returnValue = instance.AddContact(Contact)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddContact", RequestNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    ResponseNamespace = "http://schemas.microsoft.com/officelive/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("UserHeaderValue")]
[SoapHeaderAttribute("AuditHeaderValue")]
public int AddContact(
    Contact Contact
)

Parameters

Return Value

Type: System.Int32
ID attribute of new Contact

Remarks

Any contact property can be set using this method. For a list of fields available for a Business Contact under AllFields, see the Business Contacts Schema.

Examples

For an interactive example of this method, download the Contact Manager Web service examples tool from the MSDN Code Gallery.

See Also

Reference

MicrosoftOfficeLiveBusinessContactManager Class

MicrosoftOfficeLiveBusinessContactManager Members

WebBCM Namespace