Entity.EntityState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;