Bagikan melalui


WaitHandle.Handle Properti

Definisi

Perhatian

Use the SafeWaitHandle property instead.

Perhatian

WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.

Mendapatkan atau mengatur handel sistem operasi asli.

public:
 virtual property IntPtr Handle { IntPtr get(); void set(IntPtr value); };
[System.Obsolete("Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; set; }
[System.Obsolete("WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; set; }
[System.Obsolete("Use the SafeWaitHandle property instead.")]
public virtual IntPtr Handle { get; [System.Security.SecurityCritical] set; }
public virtual IntPtr Handle { get; set; }
[<System.Obsolete("Use the SafeWaitHandle property instead.")>]
member this.Handle : nativeint with get, set
[<System.Obsolete("WaitHandle.Handle has been deprecated. Use the SafeWaitHandle property instead.")>]
member this.Handle : nativeint with get, set
[<System.Obsolete("Use the SafeWaitHandle property instead.")>]
[<set: System.Security.SecurityCritical>]
member this.Handle : nativeint with get, set
member this.Handle : nativeint with get, set
Public Overridable Property Handle As IntPtr

Nilai Properti

IntPtr

nativeint

Yang IntPtr mewakili handel sistem operasi asli. Defaultnya adalah nilai InvalidHandle bidang .

Atribut

Keterangan

Menetapkan nilai baru ke Handle properti tidak menutup handel sebelumnya. Ini dapat mengakibatkan handel yang bocor.

Jangan gunakan properti ini di .NET Framework versi 2.0 atau yang lebih baru; gunakan properti sebagai gantinyaSafeWaitHandle. Mengatur properti ini ke handel yang valid juga mengatur SafeWaitHandle properti, tetapi mengaturnya ke InvalidHandle dapat mengakibatkan handel bocor.

Berlaku untuk