WorkflowApplication.Id 屬性

定義

取得目前工作流程應用程式執行個體中的 128 位元 GUID 識別碼。Gets the 128-bit GUID identifier of the current workflow application instance.

public:
 virtual property Guid Id { Guid get(); };
public override Guid Id { get; }
member this.Id : Guid
Public Overrides ReadOnly Property Id As Guid

屬性值

128 位元 GUID 識別碼。A 128-bit GUID identifier.

範例

下列範例會建立 WorkflowApplication 執行個體,然後在主控台中顯示 Id 值。The following example creates a WorkflowApplication instance and then displays the Id value to the console.

Activity wf = new WriteLine
{
    Text = "Hello world."
};

WorkflowApplication wfApp = new WorkflowApplication(wf);

Console.WriteLine("Id: {0}", wfApp.Id);

適用於