SafeHandle Methods

SafeHandle Methods

 

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

NameDescription
System_CAPS_pubmethodClose()

Marks the handle for releasing and freeing resources.

System_CAPS_pubmethodDangerousAddRef(Boolean)

Manually increments the reference counter on SafeHandle instances.

System_CAPS_pubmethodDangerousGetHandle()

Returns the value of the handle field.

System_CAPS_pubmethodDangerousRelease()

Manually decrements the reference counter on a SafeHandle instance.

System_CAPS_pubmethodDispose()

Releases all resources used by the SafeHandle class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Frees all resources associated with the handle.(Overrides CriticalFinalizerObject.Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

System_CAPS_protmethodSetHandle(IntPtr)

Sets the handle to the specified pre-existing handle.

System_CAPS_pubmethodSetHandleAsInvalid()

Marks a handle as no longer used.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show:
© 2016 Microsoft