Entity.EntityState Property


Applies To: Dynamics CRM 2015

Gets or sets the state of the entity.

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


public Nullable<EntityState> EntityState { get; set; }
property Nullable<EntityState> EntityState {
    Nullable<EntityState> get();
    void set(Nullable<EntityState> value);
member EntityState : Nullable<EntityState> with get, set
Public Property EntityState As Nullable(Of EntityState)

Property Value

Type: System.Nullable<EntityState>

Type: EntityState.
The state of the entity.


lead1.EntityState = EntityState.Changed;

See Also

Entity Class
Microsoft.Xrm.Sdk Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright