State 類別

定義

製作狀態機器可以具有之狀態的模型。Models the state which a state machine can be in.

public ref class State sealed
public sealed class State
type State = class
Public NotInheritable Class State
繼承
State

建構函式

State()

初始化 State 類別的新執行個體。Initializes a new instance of the State class.

屬性

DisplayName

取得或設定選擇性的易記名稱,這個名稱會用於偵錯、驗證、例外狀況處理及追蹤。Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

Entry

取得或設定進入狀態時執行的活動。Gets or sets the activity performed when entering the state.

Exit

取得或設定離開狀態時執行的活動。Gets or sets the activity performed when exiting the state.

IsFinal

取得或設定狀態是否為最終的狀態。Gets or sets whether the state is a final state.

Transitions

取得來自此狀態之轉換的集合。Gets the collection of transitions that come from this state.

Variables

取得與狀態相關聯之變數物件的集合。Gets the collection of variable objects associated with the state.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於