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)

Syntax

[DataMemberAttribute]
public Nullable<EntityState> EntityState { get; set; }
public:
[DataMemberAttribute]
property Nullable<EntityState> EntityState {
    Nullable<EntityState> get();
    void set(Nullable<EntityState> value);
}
[<DataMemberAttribute>]
member EntityState : Nullable<EntityState> with 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

© 2016 Microsoft. All rights reserved. Copyright