Freigeben über


CriticalHandle-Konstruktor: (IntPtr)

 

Veröffentlicht: Oktober 2016

Initialisiert eine neue Instanz der CriticalHandle-Klasse mit dem angegebenen ungültigen Handlewert.

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

Syntax

protected CriticalHandle(
    IntPtr invalidHandleValue
)
protected:
CriticalHandle(
    IntPtr invalidHandleValue
)
new : 
        invalidHandleValue:nativeint -> CriticalHandle
Protected Sub New (
    invalidHandleValue As IntPtr
)

Parameter

  • invalidHandleValue
    Type: System.IntPtr

    Der Wert eines ungültigen Handles (normalerweise 0 (null) oder -1).

Ausnahmen

Exception Condition
TypeLoadException

Die abgeleitete Klasse befindet sich in einer Assembly ohne Berechtigung für den Zugriff auf nicht verwalteten Code.

Sicherheit

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.

Versionsinformationen

Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 2.0
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Silverlight
Verfügbar seit 2.0
Windows Phone Silverlight
Verfügbar seit 8.0
Windows Phone
Verfügbar seit 8.1

Siehe auch

SafeHandle
CriticalHandle-Klasse
System.Runtime.InteropServices-Namespace

Zurück zum Anfang