SafeHandleZeroOrMinusOneIsInvalid.IsInvalid 属性

定义

获取一个值,该值指示句柄是否无效。Gets a value that indicates whether the handle is invalid.

public:
 virtual property bool IsInvalid { bool get(); };
public override bool IsInvalid { get; }
[get: System.Security.SecurityCritical]
public override bool IsInvalid { get; }
member this.IsInvalid : bool
[<get: System.Security.SecurityCritical>]
member this.IsInvalid : bool
Public Overrides ReadOnly Property IsInvalid As Boolean

属性值

Boolean

如果句柄无效,则为 true;否则为 falsetrue if the handle is not valid; otherwise, false.

属性

注解

公共语言运行时使用此属性来确定是否需要关键终结。The common language runtime uses this property to determine whether critical finalization is required.

适用于

另请参阅