Entity Class

 

Represents an instance of an entity (a record).

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

System.Object
  Microsoft.Xrm.Sdk.Entity

<DataContractAttribute(Name := "Entity", Namespace := "http://schemas.microsoft.com/xrm/2011/Contracts")>
Public Class Entity
	Implements IExtensibleDataObject

NameDescription
System_CAPS_pubmethodEntity()

Initializes a new instance of the Entity class.

System_CAPS_pubmethodEntity(String)

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

System_CAPS_pubmethodEntity(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.

System_CAPS_pubmethodEntity(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.

System_CAPS_pubmethodEntity(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.

NameDescription
System_CAPS_pubpropertyAttributes

Gets or sets the collection of attributes for the entity.

System_CAPS_pubpropertyEntityState

Gets or sets the state of the entity.

System_CAPS_pubpropertyExtensionData

Gets or sets the structure that contains extra data.

System_CAPS_pubpropertyFormattedValues

Gets of sets the collection of formatted values for the entity attributes.

System_CAPS_pubpropertyId

Gets or sets the ID of the record represented by this entity instance.

System_CAPS_pubpropertyItem(String)

Provides an indexer for the attribute values.

System_CAPS_pubpropertyKeyAttributes

Gets or sets the key attributes.

System_CAPS_pubpropertyLogicalName

Gets or sets the logical name of the entity.

System_CAPS_pubpropertyRelatedEntities

Gets or sets a collection of entity references (references to records).

System_CAPS_pubpropertyRowVersion

Gets or sets the row version

NameDescription
System_CAPS_pubmethodContains(String)

Checks to see if there is a value present for the specified attribute.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAttributeValue(Of T)(String)

Gets the value of the attribute.

System_CAPS_protmethodGetFormattedAttributeValue(String)

Gets the formatted value of the attribute.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetRelatedEntities(Of TEntity)(String, Nullable(Of EntityRole))

Gets the collection of related entity instances for the specified relationship.

System_CAPS_protmethodGetRelatedEntity(Of TEntity)(String, Nullable(Of EntityRole))

Gets the related entity instance for the specified relationship.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetAttributeValue(String, Object)

Sets the value of an attribute.

System_CAPS_protmethodSetRelatedEntities(Of TEntity)(String, Nullable(Of EntityRole), IEnumerable(Of TEntity))

Sets the collection of related entity instances for the specified relationship.

System_CAPS_protmethodSetRelatedEntity(Of TEntity)(String, Nullable(Of EntityRole), TEntity)

Sets the related entity instance for the specified relationship.

System_CAPS_pubmethodToEntity(Of T)()

Gets the entity as the specified type.

System_CAPS_pubmethodToEntityReference()

Gets an entity reference for this entity instance.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Entity is the base class for all types of entities in Microsoft Dynamics CRM. You use this class for both early and late bound programming.

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 CRM 2016 and CRM Online

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

Show: