InvokeMethod.RunAsynchronously Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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 aktivitas InvokeMethod . 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"),
}
},