Share via


Entity.EntityState Property

Definition

Gets or sets the state of the entity.

public:
 property Nullable<Microsoft::Xrm::Sdk::EntityState> EntityState { Nullable<Microsoft::Xrm::Sdk::EntityState> get(); void set(Nullable<Microsoft::Xrm::Sdk::EntityState> value); };
[System.Runtime.Serialization.DataMember]
public Microsoft.Xrm.Sdk.EntityState? EntityState { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.EntityState : Nullable<Microsoft.Xrm.Sdk.EntityState> with get, set
Public Property EntityState As Nullable(Of EntityState)

Property Value

The state of the entity.

Attributes

Examples

lead1.EntityState = EntityState.Changed;

Applies to