WorkflowRuntime.Name 屬性

定義

取得或設定與 WorkflowRuntime 關聯的名稱。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

屬性值

String

與此 WorkflowRuntime 關聯的名稱。

例外狀況

嘗試在已處置 (Dispose) 的 Name 上設定 WorkflowRuntime

在工作流程執行階段引擎執行時,嘗試設定 Name

範例

下列範例示範如何存取 Name 物件的 WorkflowRuntime 屬性。 在此範例中,執行階段的名稱設定為 "Main Runtime"。

// Create a new WorkflowRuntime
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
// Assign a name to the runtime
workflowRuntime.Name = "Main Runtime";
' Create a new WorkflowRuntime
Dim workflowRuntime As New WorkflowRuntime()
' Assign a name to the runtime
workflowRuntime.Name = "Main Runtime"

備註

您無法在執行工作流程執行時間引擎時設定 Name , (IsStarted) true

適用於