MicrosoftOfficeLiveBusinessContactManager.GetGroupsForContact 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 contact groups to which the specified contact belongs.

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

Syntax

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

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

Parameters

Return Value

Type: []
Array of ContactGroup names

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