EntityReference Class

 

Updated: November 29, 2016

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

Identifies a record.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

System.Object
  Microsoft.Xrm.Sdk.EntityReference

[SerializableAttribute]
[DataContractAttribute(Name = "EntityReference", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class EntityReference : IExtensibleDataObject

NameDescription
System_CAPS_pubmethodEntityReference()

Initializes a new instance of the EntityReference class.

System_CAPS_pubmethodEntityReference(String)

Initializes a new instance of the EntityReference class.

System_CAPS_pubmethodEntityReference(String, Guid)

Initializes a new instance of the EntityReference class setting the logical name and entity ID.

This constructor was introduced with Microsoft Dynamics CRM Online 2015 Update 1 and cannot be used with earlier versions.

System_CAPS_pubmethodEntityReference(String, KeyAttributeCollection)

Initializes a new instance of the EntityReference class.

This constructor was introduced with Microsoft Dynamics CRM Online 2015 Update 1 and cannot be used with earlier versions.

System_CAPS_pubmethodEntityReference(String, String, Object)

Initializes a new instance of the EntityReference class.

This constructor was introduced with Microsoft Dynamics CRM Online 2015 Update 1 and cannot be used with earlier versions.

NameDescription
System_CAPS_pubpropertyExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubpropertyId

Gets or sets the ID of the record.

System_CAPS_pubpropertyKeyAttributes

Gets or sets the key attributes.

System_CAPS_pubpropertyLogicalName

Gets or sets the logical name of the entity.

System_CAPS_pubpropertyName

Gets or sets the value of the primary attribute of the entity.

System_CAPS_pubpropertyRowVersion

Gets or sets the row version.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether two instances are equal.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for this type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This class replaces the Moniker class from Microsoft Dynamics CRM 4.0.

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

Show: