WorkflowRuntime.Name Propiedad

Definición

Obtiene o establece el nombre asociado a 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

Valor de propiedad

String

El nombre asociado a esta WorkflowRuntime.

Excepciones

Se produce un intento para establecer Name en un WorkflowRuntime que se elimina.

Se produce un intento para establecer Name mientras el motor en tiempo de ejecución de flujo de trabajo está en ejecución.

Ejemplos

El ejemplo siguiente muestra cómo tener acceso a la propiedad Name de un objeto WorkflowRuntime. En este ejemplo, el nombre del tiempo de ejecución está establecido en "Tiempo de ejecución Principal."

// 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"

Comentarios

No se puede establecer Name mientras se ejecuta el motor en tiempo de ejecución del flujo de trabajo (IsStarted es true).

Se aplica a