Bagikan melalui


WorkflowEnvironment Kelas

Definisi

Perhatian

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Mewakili lingkungan transaksional instans alur kerja yang berjalan pada utas saat ini.

public ref class WorkflowEnvironment abstract sealed
public static class WorkflowEnvironment
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public static class WorkflowEnvironment
type WorkflowEnvironment = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowEnvironment = class
Public Class WorkflowEnvironment
Warisan
WorkflowEnvironment
Atribut

Keterangan

Nota

Materi ini membahas jenis dan namespace yang usang. Untuk informasi selengkapnya, lihat Tipe Yang Tidak Digunakan Lagi di Windows Workflow Foundation 4.5.

WorkflowEnvironment mewakili lingkungan transaksional instans alur kerja yang berjalan pada utas saat ini. WorkflowEnvironment memiliki dua properti: WorkBatch properti , yang mengekspos batch kerja saat ini dan memungkinkan host atau layanan host untuk berpartisipasi dalam transaksi saat ini dengan menambahkan IPendingWork item ke properti ini; dan WorkflowInstanceId properti , yang mengekspos instans alur kerja yang saat ini berjalan pada utas Guid ini.

Properti

Nama Deskripsi
WorkBatch
Kedaluwarsa.

Mendapatkan batch kerja saat ini.

WorkflowInstanceId
Kedaluwarsa.

Mendapatkan instans alur kerja yang terkait dengan utas Guid saat ini.

Berlaku untuk