WaitHandle.Handle 속성

정의

주의

Use the SafeWaitHandle property instead.

주의

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

네이티브 운영 체제 핸들을 가져오거나 설정합니다.

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

속성 값

IntPtr

nativeint

네이티브 운영 체제 핸들을 나타내는 IntPtr입니다. 기본값은 InvalidHandle 필드의 값입니다.

특성

설명

속성에 새 값을 할당해도 Handle 이전 핸들은 닫히지 않습니다. 이로 인해 핸들이 유출될 수 있습니다.

.NET Framework 버전 2.0 이상에서는 이 속성을 사용하지 마세요. 대신 속성을 사용합니다SafeWaitHandle. 이 속성을 유효한 핸들로 설정하면 속성도 설정 SafeWaitHandle 되지만 로 설정하면 InvalidHandle 핸들이 유출될 수 있습니다.

적용 대상