Partager via


Entity Members

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Represents an instance of an entity (a record).

The following tables list the members exposed by the Entity type.

Public Constructors

  Name Description
  Entity Overloaded. Initializes a new instance of the Entity class.

Top

Public Properties

  Name Description
public property Attributes Gets or sets the collection of attributes for the entity.
public property EntityState Gets or sets the state of the entity.
public property ExtensionData Gets or sets the structure that contains extra data.
public property FormattedValues Gets of sets the collection of formatted values for the entity attributes.
public property Id Gets or sets the ID of the record represented by this entity instance.
public property Item Provides an indexer for the attribute values.
public property LogicalName Gets or sets the logical name of the entity.
public property RelatedEntities Gets or sets a collection of entity references (references to records).

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Contains Checks to see if there is a value present for the specified attribute.
public method Equals  (inherited from Object)
public method GetAttributeValue Gets the value of the attribute.
public method GetHashCode  (inherited from Object)
public method GetType  (inherited from Object)
public method ToEntity Gets the entity as the specified type.
public method ToEntityReference Gets an entity reference for this entity instance.
public method ToString  (inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (inherited from Object)
protected method GetFormattedAttributeValue Gets the formatted value of the attribute.
protected method GetRelatedEntities Gets the collection of related entity instances for the specified relationship.
protected method GetRelatedEntity Gets the related entity instance for the specified relationship.
protected method MemberwiseClone  (inherited from Object)
protected method SetAttributeValue Sets the value of an attribute.
protected method SetRelatedEntities Sets the collection of related entity instances for the specified relationship.
protected method SetRelatedEntity Sets the related entity instance for the specified relationship.

Top

See Also

Reference

Entity Class
Microsoft.Xrm.Sdk Namespace

Other Resources

Use the Early Bound Entity Classes in Code
Use the Late Bound Entity Class in Code

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.