UserProfileService.GetPropertyChoiceList Method
Gets all vocabulary terms in the choice list for a given property.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
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.StringThe 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.