UserProfileService.GetPropertyChoiceList method

Gets all vocabulary terms in the choice list for a given property.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetPropertyChoiceList", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetPropertyChoiceList ( _
    propertyName As String _
) As String()
'Usage
Dim instance As UserProfileService
Dim propertyName As String
Dim returnValue As String()

returnValue = instance.GetPropertyChoiceList(propertyName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetPropertyChoiceList", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string[] GetPropertyChoiceList(
    string propertyName
)

Parameters

  • propertyName
    Type: System.String

    The name of the property that has a choice list.

Return value

Type: []
An array that contains all vocabulary terms in the choice list for the specified property.

Exceptions

Exception Condition
SoapException

The property cannot be found, is not available to the Web service, or the choice list for the property is null .

Remarks

This method returns all vocabulary terms in the choice list for the property specified by the propertyName parameter.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace