Sdílet prostřednictvím


EntityMetadata.EnforceStateTransitions Property

 

Applies To: Dynamics CRM 2015

Gets whether the entity will enforce custom state transitions.

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

Syntax

[DataMemberAttribute]
public Nullable<bool> EnforceStateTransitions { get; internal set; }
public:
[DataMemberAttribute]
property Nullable<bool> EnforceStateTransitions {
    Nullable<bool> get();
    internal: void set(Nullable<bool> value);
}
[<DataMemberAttribute>]
member EnforceStateTransitions : Nullable<bool> with get, internal set
<DataMemberAttribute>
Public Property EnforceStateTransitions As Nullable(Of Boolean)
    Get
    Friend Set
End Property

Property Value

Type: System.Nullable<Boolean>

Type: Nullable<Boolean>
true if the entity supports custom status transitions.; otherwise, false.

Remarks

This property can only be set using the application. More information: Define custom state model transitions.

Incident (case) is the only system entity that supports custom state transitions. Custom entities may also support custom state transitions. The definitions for the allowed transitions are stored in the StatusOptionMetadata.TransitionData property.

See Also

EntityMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright