SafeHandle::IsClosed Property
.NET Framework (current version)
Gets a value indicating whether the handle is closed.
Assembly: mscorlib (in mscorlib.dll)
The IsClosed method returns a value indicating whether the SafeHandle object's handle is no longer associated with a native resource. This differs from the definition of the IsInvalid property, which computes whether a given handle is always considered invalid. The IsClosed method returns a true value in the following cases:
The SetHandleAsInvalid method was called.
The Dispose method or Close method was called and there are no references to the SafeHandle object on other threads.
SecurityPermission
for permission to call unmanaged code. Security action: LinkDemand. Associated enumeration: SecurityPermissionFlag::UnmanagedCode
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: