OrganizationServiceContextExtensions.WhoAmI<TResponse> Method (OrganizationServiceContext)

 

Applies To: Dynamics CRM 2013

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)

Syntax

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

Parameters

Return Value

Type: TResponse

Returns Boolean.

Type Parameters

  • TResponse

Remarks

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 2013

Return to top