UserProfileService.GetProfileSchemaNameByAccountName method

Gets the name of the profile subtype for the specified account name.

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

Syntax

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

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

Parameters

Return value

Type: System.String
The name of the profile subtype of the specified user.

Exceptions

Exception Condition
SoapException

The name cannot be retrieved.

Remarks

This method returns the name of the profile subtype for the user specified by the accountName parameter.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace