MicrosoftOfficeLiveBusinessContactManager.AddContacts 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 multiple contacts. Returns the list of IDs for the new contact.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddContacts", 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 AddContacts ( _
    Contacts As Contact() _
) As Integer()
'Usage
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim Contacts As Contact()
Dim returnValue As Integer()

returnValue = instance.AddContacts(Contacts)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddContacts", 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[] AddContacts(
    Contact[] Contacts
)

Parameters

  • Contacts
    Type: []
    Array of Contact
    objects.

Return Value

Type: []
Array of ID attributes of new Contact objects

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