EntityReference EntityReference EntityReference EntityReference Class

Definition

Identifies a record.

public ref class EntityReference sealed : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="EntityReference", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class EntityReference : System.Runtime.Serialization.IExtensibleDataObject
type EntityReference = class
    interface IExtensibleDataObject
Public NotInheritable Class EntityReference
Implements IExtensibleDataObject
Inheritance
EntityReferenceEntityReferenceEntityReferenceEntityReference
Attributes
Implements

Remarks

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

Constructors

EntityReference() EntityReference() EntityReference() EntityReference()

Initializes a new instance of the EntityReference class.

EntityReference(String) EntityReference(String) EntityReference(String) EntityReference(String)

Initializes a new instance of the EntityReference class.

EntityReference(String, KeyAttributeCollection) EntityReference(String, KeyAttributeCollection) EntityReference(String, KeyAttributeCollection) EntityReference(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.

EntityReference(String, Guid) EntityReference(String, Guid) EntityReference(String, Guid) EntityReference(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.

EntityReference(String, String, Object) EntityReference(String, String, Object) EntityReference(String, String, Object) EntityReference(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.

Properties

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data.

Id Id Id Id

Gets or sets the ID of the record.

KeyAttributes KeyAttributes KeyAttributes KeyAttributes

Gets or sets the key attributes.

LogicalName LogicalName LogicalName LogicalName

Gets or sets the logical name of the entity.

Name Name Name Name

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

RowVersion RowVersion RowVersion RowVersion

Gets or sets the row version.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether two instances are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for this type.

Applies to