UserProfileService.GetUserProfileByIndex method

Gets the user profile by the specified index.

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    The index of the user profile to be retrieved.

Return value

Type: WebSvcUserProfileService.GetUserProfileByIndexResult
The user profile.

Exceptions

Exception Condition
NoPortalContextException

A proxy for the user profile cannot be found.

SoapException

The user profile cannot be retrieved.

Remarks

This method returns the information about the user profile by the specified index.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace