Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Entity.ToEntityReference Method

Definition

Namespace:
Microsoft.Xrm.Sdk
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets an entity reference for this entity instance.

public:
 Microsoft::Xrm::Sdk::EntityReference ^ ToEntityReference();
public Microsoft.Xrm.Sdk.EntityReference ToEntityReference();
member this.ToEntityReference : unit -> Microsoft.Xrm.Sdk.EntityReference
Public Function ToEntityReference () As EntityReference

Returns

The entity reference for the entity.

Examples

RetrieveRequest request = new RetrieveRequest
{
Target = account.ToEntityReference(),
ColumnSet = new ColumnSet(),
RelatedEntitiesQuery = new RelationshipQueryCollection()
};

Applies to