Bagikan melalui


ICompensatableActivity Antarmuka

Definisi

Perhatian

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

Menentukan antarmuka yang diperlukan oleh yang Activity dapat dikompensasi.

public interface class ICompensatableActivity
public interface ICompensatableActivity
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface ICompensatableActivity
type ICompensatableActivity = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ICompensatableActivity = interface
Public Interface ICompensatableActivity
Turunan
Atribut

Keterangan

Nota

Materi ini membahas jenis dan namespace yang usang. Untuk informasi selengkapnya, lihat jenis Deprecated di Windows Workflow Foundation 4.5.

Untuk informasi selengkapnya tentang kompensasi, lihat Menggunakan Transaksi di Alur Kerja.

Metode

Nama Deskripsi
Compensate(ActivityExecutionContext)
Kedaluwarsa.

Dipanggil oleh runtime alur kerja untuk mengkompensasi aktivitas yang berada dalam status Tertutup. Aktivitas harus memiliki nilai Succeeded untuk propertinya ExecutionResult agar dapat dikompensasi.

Berlaku untuk