Stream.CreateWaitHandle Metode
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.
Perhatian
CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.
Perhatian
Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.
Perhatian
CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.
Mengalokasikan WaitHandle objek.
protected:
virtual System::Threading::WaitHandle ^ CreateWaitHandle();
[System.Obsolete("CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.")]
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
[System.Obsolete("Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")]
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
[System.Obsolete("CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")]
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
[<System.Obsolete("CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.")>]
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
[<System.Obsolete("Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")>]
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
[<System.Obsolete("CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")>]
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
Protected Overridable Function CreateWaitHandle () As WaitHandle
Mengembalikan
Referensi ke yang dialokasikan WaitHandle
.
- Atribut
Keterangan
Ketika dipanggil untuk pertama kalinya, metode saat ini membuat WaitHandle
objek dan mengembalikannya. Pada panggilan berikutnya, CreateWaitHandle
mengembalikan referensi ke handel tunggu baru.
Gunakan metode ini jika Anda menerapkan metode asinkron dan memerlukan cara untuk memblokir atau EndReadEndWrite sampai operasi asinkron selesai.