Kongsi melalui


Entity Constructors

Definition

Overloads

Entity()

Initializes a new instance of the Entity class.

Entity(String)

Initializes a new instance of the Entity class setting the entity name.

Entity(String, KeyAttributeCollection)

Initializes a new instance of the Entity class.

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

Entity(String, Guid)

Initializes a new instance of the Entity class.

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

Entity(String, String, Object)

Initializes a new instance of the Entity class.

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

Entity()

Initializes a new instance of the Entity class.

public:
 Entity();
public Entity ();
Public Sub New ()

Applies to

Entity(String)

Initializes a new instance of the Entity class setting the entity name.

public:
 Entity(System::String ^ entityName);
public Entity (string entityName);
new Microsoft.Xrm.Sdk.Entity : string -> Microsoft.Xrm.Sdk.Entity
Public Sub New (entityName As String)

Parameters

entityName
String

The name of the entity.

Applies to

Entity(String, KeyAttributeCollection)

Initializes a new instance of the Entity class.

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

public:
 Entity(System::String ^ entityName, Microsoft::Xrm::Sdk::KeyAttributeCollection ^ keyAttributes);
public Entity (string entityName, Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes);
new Microsoft.Xrm.Sdk.Entity : string * Microsoft.Xrm.Sdk.KeyAttributeCollection -> Microsoft.Xrm.Sdk.Entity
Public Sub New (entityName As String, keyAttributes As KeyAttributeCollection)

Parameters

entityName
String

Specifies the entity name.

keyAttributes
KeyAttributeCollection

Specifies the key attributes.

Remarks

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

Applies to

Entity(String, Guid)

Initializes a new instance of the Entity class.

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

public:
 Entity(System::String ^ entityName, Guid id);
public Entity (string entityName, Guid id);
new Microsoft.Xrm.Sdk.Entity : string * Guid -> Microsoft.Xrm.Sdk.Entity
Public Sub New (entityName As String, id As Guid)

Parameters

entityName
String

Specifies the entity name.

id
Guid

Specifies the ID of the record.

Remarks

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

Applies to

Entity(String, String, Object)

Initializes a new instance of the Entity class.

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

public:
 Entity(System::String ^ entityName, System::String ^ keyName, System::Object ^ keyValue);
public Entity (string entityName, string keyName, object keyValue);
new Microsoft.Xrm.Sdk.Entity : string * string * obj -> Microsoft.Xrm.Sdk.Entity
Public Sub New (entityName As String, keyName As String, keyValue As Object)

Parameters

entityName
String

Specifies the entity name.

keyName
String

Specifies the key name.

keyValue
Object

Specifies the key value.

Remarks

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

Applies to