MicrosoftOfficeLiveBusinessContactManager.GetContacts 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.

Returns the list of contacts in the specified contact group that match the search term.

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


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("AuditHeaderValue")> _
<SoapHeaderAttribute("UserHeaderValue")> _
Public Function GetContacts ( _
    ContactGroup As String, _
    SearchTerm As String, _
    IsCompactResult As Boolean _
) As Contact()
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim ContactGroup As String
Dim SearchTerm As String
Dim IsCompactResult As Boolean
Dim returnValue As Contact()

returnValue = instance.GetContacts(ContactGroup, _
    SearchTerm, IsCompactResult)
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Contact[] GetContacts(
    string ContactGroup,
    string SearchTerm,
    bool IsCompactResult


  • ContactGroup
    Type: System.String
    ContactGroup Default groups are named:
    • Lead or Prospect

    • Customer

    • Vendor

    • Employee

    • Newsletter Subscriber

    • This parameter must be set to NULL to get all contacts.

  • SearchTerm
    Type: System.String
    String on which to filter this search.
    This parameter must be set to NULL to get all contacts.
  • IsCompactResult
    Type: System.Boolean
    Boolean to request compacted results.

Return Value

Type: []
Array of Contact objects


Fields available to match are:

  • ContactFullname

  • WorkPhone

  • CellPhone

  • HomePhone

  • Business2Number

  • PagerNumber

  • WorkFax

  • OtherFaxNumber

  • Email

  • Email2

  • IMAddress


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