EntityReference Constructors

Definition

Overloads

EntityReference()

Initializes a new instance of the EntityReference class.

EntityReference(String)

Initializes a new instance of the EntityReference class.

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)

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)

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()

Initializes a new instance of the EntityReference class.

C++
public:
 EntityReference();

Applies to

Dataverse SDK Latest
Product Versions
Dataverse SDK Latest

EntityReference(String)

Initializes a new instance of the EntityReference class.

C++
public:
 EntityReference(System::String ^ logicalName);

Parameters

logicalName
String

Specifies the logical name.

Applies to

Dataverse SDK Latest
Product Versions
Dataverse SDK Latest

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.

C++
public:
 EntityReference(System::String ^ logicalName, Microsoft::Xrm::Sdk::KeyAttributeCollection ^ keyAttributeCollection);

Parameters

logicalName
String

Specifies the entity logical name.

keyAttributeCollection
KeyAttributeCollection

Specifies the key attributes collection.

Remarks

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

Applies to

Dataverse SDK Latest
Product Versions
Dataverse SDK Latest

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.

C++
public:
 EntityReference(System::String ^ logicalName, Guid id);

Parameters

logicalName
String

The logical name of the entity.

id
Guid

The ID of the record.

Remarks

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

Applies to

Dataverse SDK Latest
Product Versions
Dataverse SDK Latest

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.

C++
public:
 EntityReference(System::String ^ logicalName, System::String ^ keyName, System::Object ^ keyValue);

Parameters

logicalName
String

Specifies the entity logical name.

keyName
String

Specifies the key name.

keyValue
Object

Specifies the key value.

Remarks

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

Applies to

Dataverse SDK Latest
Product Versions
Dataverse SDK Latest