Bagikan melalui


WorkflowApplication.Id Properti

Definisi

Mendapatkan pengidentifikasi GUID 128-bit dari instans aplikasi alur kerja saat ini.

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

Nilai Properti

Pengidentifikasi GUID 128-bit.

Contoh

Contoh berikut membuat instans WorkflowApplication lalu menampilkan nilai ke Id konsol.

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

WorkflowApplication wfApp = new WorkflowApplication(wf);

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

Berlaku untuk