Share via


WhoAmIResponse Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Contains the response from the WhoAmIRequest class.

For the Web API the WhoAmIResponse ComplexType is the response value from the WhoAmI Function.

Namespace:   Microsoft.Crm.Sdk.Messages
Assembly:  Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.OrganizationResponse
    Microsoft.Crm.Sdk.Messages.WhoAmIResponse

Syntax

[DataContractAttribute(Namespace = "https://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class WhoAmIResponse : OrganizationResponse
<DataContractAttribute(Namespace := "https://schemas.microsoft.com/crm/2011/Contracts")>
Public NotInheritable Class WhoAmIResponse
    Inherits OrganizationResponse

Constructors

Name Description
System_CAPS_pubmethod WhoAmIResponse()

Initializes a new instance of the WhoAmIResponse class.

Properties

Name Description
System_CAPS_pubproperty BusinessUnitId

Gets the ID of the business to which the logged on user belongs.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.(Inherited from OrganizationResponse.)

System_CAPS_pubproperty Item[String]

Gets an indexer for the Results collection.(Inherited from OrganizationResponse.)

System_CAPS_pubproperty OrganizationId

Gets the ID of the organization that the user belongs to.

System_CAPS_pubproperty ResponseName

Gets or sets the name of the response.(Inherited from OrganizationResponse.)

System_CAPS_pubproperty Results

Gets the results of the request that was performed.(Inherited from OrganizationResponse.)

System_CAPS_pubproperty UserId

Gets the ID of the user who is logged on.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

WhoAmIRequest
Microsoft.Crm.Sdk.Messages Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright