CriticalHandleMinusOneIsInvalid Class

Do not use any members of this type in your application. If you do, your code will throw a MethodAccessException. This type is security-critical, which restricts it to internal use by the .NET Framework for Silverlight class library.

Provides a base class for Win32 critical handle implementations in which the value of -1 indicates an invalid handle.

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

public abstract class CriticalHandleMinusOneIsInvalid : CriticalHandle

The CriticalHandleMinusOneIsInvalid type exposes the following members.

Protected methodCriticalHandleMinusOneIsInvalidInitializes a new instance of the CriticalHandleMinusOneIsInvalid class.

Public propertyIsClosedGets a value that indicates whether the handle is closed. (Inherited from CriticalHandle.)
Public propertyIsInvalidGets a value that indicates whether the handle is invalid. (Overrides CriticalHandle.IsInvalid.)

Public methodCloseSecurity Critical. Marks the handle for releasing and freeing resources. (Inherited from CriticalHandle.)
Public methodDispose()Releases all resources used by the CriticalHandle. (Inherited from CriticalHandle.)
Protected methodDispose(Boolean)Security Critical. Releases the unmanaged resources used by the CriticalHandle class specifying whether to perform a normal dispose operation. (Inherited from CriticalHandle.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFrees all resources associated with the handle. (Inherited from CriticalHandle.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodReleaseHandleWhen overridden in a derived class, executes the code required to free the handle. (Inherited from CriticalHandle.)
Protected methodSetHandleSets the handle to the specified pre-existing handle. (Inherited from CriticalHandle.)
Public methodSetHandleAsInvalidMarks a handle as invalid. (Inherited from CriticalHandle.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Protected fieldhandleSpecifies the handle to be wrapped. (Inherited from CriticalHandle.)


Supported in: 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.