OrganizationServiceContextExtensions.WhoAmI<TResponse> Method (OrganizationServiceContext)


Applies To: Dynamics CRM 2015

Retrieves the user information for the logged on user. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static TResponse WhoAmI<TResponse>(
    this OrganizationServiceContext context
where TResponse : OrganizationResponse
generic<typename TResponse>
where TResponse : OrganizationResponse
static TResponse WhoAmI(
    OrganizationServiceContext^ context
static member WhoAmI<'TResponse when 'TResponse : OrganizationResponse> : 
        context:OrganizationServiceContext -> 'TResponse
Public Shared Function WhoAmI(Of TResponse As OrganizationResponse) (
    context As OrganizationServiceContext
) As TResponse


Return Value

Type: TResponse

Returns Boolean.

Type Parameters

  • TResponse


This is a method wrapper for the WhoAmIRequest and WhoAmIResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright