Classe Entity

S'applique à: CRM 2015 on-prem, CRM Online

Represents an instance of an entity (a record).

Espace de noms: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
<DataContractAttribute(Name:="Entity", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts")> _
<DefaultMemberAttribute("Item")> _
<SuppressMessageAttribute("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification:="This class need to be instantiated by clients and be able to derive from it.")> _
Public Class Entity
    Implements IExtensibleDataObject
[DataContractAttribute(Name="Entity", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts")] 
[DefaultMemberAttribute("Item")] 
[SuppressMessageAttribute("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification="This class need to be instantiated by clients and be able to derive from it.")] 
public class Entity : IExtensibleDataObject

Remarques

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.

Hiérarchie d'héritage

System.Object
  Microsoft.Xrm.Sdk.Entity

Cohérence de thread

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows Vista,Windows XP

Voir aussi

Référence

Membres Entity
Espace de noms Microsoft.Xrm.Sdk

Autres ressources

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

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