Share via


AsyncStateMachineAttribute(Type) 建構函式

定義

初始化 AsyncStateMachineAttribute 類別的新執行個體。

public:
 AsyncStateMachineAttribute(Type ^ stateMachineType);
public AsyncStateMachineAttribute (Type stateMachineType);
new System.Runtime.CompilerServices.AsyncStateMachineAttribute : Type -> System.Runtime.CompilerServices.AsyncStateMachineAttribute
Public Sub New (stateMachineType As Type)

參數

stateMachineType
Type

基礎狀態機器類型的類型物件,該類型會被用來實作狀態機器方法。

適用於