Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SafeHandleMinusOneIsInvalid Constructor

SafeHandleMinusOneIsInvalid Constructor

Initializes a new instance of the SafeHandleMinusOneIsInvalid class, specifying whether the handle is to be reliably released.

Namespace:  Microsoft.Win32.SafeHandles
Assembly:  mscorlib (in mscorlib.dll)

new : 
        ownsHandle:bool -> SafeHandleMinusOneIsInvalid

Parameters

ownsHandle
Type: System.Boolean

true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

  • InheritanceDemand 

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

  • SecurityCriticalAttribute 

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

Show:
© 2015 Microsoft