Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.
[SECURITY CRITICAL]

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)

[SecurityCriticalAttribute]
public abstract class CriticalHandleMinusOneIsInvalid : CriticalHandle

The CriticalHandleMinusOneIsInvalid type exposes the following members.

  NameDescription
Protected methodCriticalHandleMinusOneIsInvalidInitializes a new instance of the CriticalHandleMinusOneIsInvalid class.
Top

  NameDescription
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.)
Top

  NameDescription
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.)
Top

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

Silverlight

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.

Community Additions

Show:
© 2015 Microsoft