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)


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("UserHeaderValue")> _
<SoapHeaderAttribute("AuditHeaderValue")> _
Public Function AddContact ( _
    Contact As Contact _
) As Integer
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim Contact As Contact
Dim returnValue As Integer

returnValue = instance.AddContact(Contact)
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int AddContact(
    Contact Contact


Return Value

Type: System.Int32
ID attribute of new Contact


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.


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

See Also


MicrosoftOfficeLiveBusinessContactManager Class

MicrosoftOfficeLiveBusinessContactManager Members

WebBCM Namespace