WorkflowRuntime.Name 속성

정의

WorkflowRuntime과 연결된 이름을 가져오거나 설정합니다.Gets or sets the name associated with the 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

속성 값

WorkflowRuntime과 연결된 이름입니다.The name associated with this WorkflowRuntime.

예외

삭제된 NameWorkflowRuntime을 설정하려고 시도하는 경우An attempt to set Name on a WorkflowRuntime that is disposed occurs.

워크플로 런타임 엔진이 실행되는 동안 Name을 설정하려고 시도하는 경우An attempt to set Name while the workflow run-time engine is running occurs.

예제

다음 예제에서는 Name 개체의 WorkflowRuntime 속성에 액세스하는 방법을 보여 줍니다.The following example demonstrates how to access the Name property of a WorkflowRuntime object. 이 예제에서 런타임 이름은 "Main Runtime"으로 설정됩니다.In this example, the name of the runtime is set to "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 하는 동안 워크플로 런타임 엔진이 실행 되 고 (IsStartedtrue).You cannot set Name while the workflow run-time engine is running (IsStarted is true).

적용 대상