Partilhar via


Entity.EntityState Property

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets or sets the state of the entity.

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

Syntax

[DataMemberAttribute]
public Nullable<EntityState> EntityState { get; set; }
<DataMemberAttribute>
Public Property EntityState As Nullable(Of EntityState)

Property Value

Type: System.Nullable<EntityState>

Type: EntityState.
The state of the entity.

Examples

lead1.EntityState = EntityState.Changed;

See Also

Entity Class
Microsoft.Xrm.Sdk Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright