InvokeMethod.RunAsynchronously Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah metode aktivitas dipanggil secara asinkron.

public:
 property bool RunAsynchronously { bool get(); void set(bool value); };
public bool RunAsynchronously { get; set; }
member this.RunAsynchronously : bool with get, set
Public Property RunAsynchronously As Boolean

Nilai Properti

true jika metode dijalankan secara asinkron.

Contoh

Sampel kode berikut menunjukkan pengaturan properti RunAsynchronously dari InvokeMethod aktivitas. Contoh ini berasal dari sampel Menggunakan Aktivitas InvokeMethod .

new InvokeMethod
{
    TargetObject = new InArgument<TestClass>(ctx => testClass),
    MethodName = "AsyncMethodSample",
    RunAsynchronously = true,
    Parameters =
    {
        new InArgument<string>("Hello async"),
    }
},

Berlaku untuk