Entity.ToEntityReference Method
Definition
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()
};