EntityReference Class
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)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.EntityReference
Syntax
[SerializableAttribute]
[DataContractAttribute(Name = "EntityReference", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class EntityReference : IExtensibleDataObject
<SerializableAttribute>
<DataContractAttribute(Name := "EntityReference", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts")>
Public NotInheritable Class EntityReference
Implements IExtensibleDataObject
Constructors
Name | Description | |
---|---|---|
EntityReference() | Initializes a new instance of the EntityReference class. |
|
EntityReference(String) | Initializes a new instance of the EntityReference class. |
|
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, 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, 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
Name | Description | |
---|---|---|
ExtensionData | Gets or sets the structure that contains extra data. |
|
Id | Gets or sets the ID of the record. |
|
KeyAttributes | Gets or sets the key attributes. |
|
LogicalName | Gets or sets the logical name of the entity. |
|
Name | Gets or sets the value of the primary attribute of the entity. |
|
RowVersion | Gets or sets the row version. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether two instances are equal.(Overrides Object.Equals(Object).) |
|
GetHashCode() | Serves as a hash function for this type.(Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Remarks
This class replaces the Moniker class from Microsoft Dynamics CRM 4.0.
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
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright