Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CriticalHandle Constructor (IntPtr)

 

Initializes a new instance of the CriticalHandle class with the specified invalid handle value.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

protected:
CriticalHandle(
	IntPtr invalidHandleValue
)

Parameters

invalidHandleValue
Type: System::IntPtr

The value of an invalid handle (usually 0 or -1).

Exception Condition
TypeLoadException

The derived class resides in an assembly without unmanaged code access permission.

InheritanceDemand

for full trust for inheritors. This member cannot be inherited by partially trusted code.

SecurityCriticalAttribute

requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.

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 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft