Click or drag to resize
SafeFindVolumeHandle Class
Represents a wrapper class for a handle used by the FindFirstVolume/FindNextVolume methods of the Win32 API.
Inheritance Hierarchy

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public sealed class SafeFindVolumeHandle : SafeHandleZeroOrMinusOneIsInvalid

The SafeFindVolumeHandle type exposes the following members.

Constructors
  NameDescription
Public methodSafeFindVolumeHandle
Initializes a new instance of the SafeFindVolumeHandle class.
Top
Methods
  NameDescription
Public methodClose
Marks the handle for releasing and freeing resources.
(Inherited from SafeHandle.)
Public methodDangerousAddRef
Manually increments the reference counter on SafeHandle instances.
(Inherited from SafeHandle.)
Public methodDangerousGetHandle
Returns the value of the handle field.
(Inherited from SafeHandle.)
Public methodDangerousRelease
Manually decrements the reference counter on a SafeHandle instance.
(Inherited from SafeHandle.)
Public methodDispose
Releases all resources used by the SafeHandle class.
(Inherited from SafeHandle.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.
(Inherited from SafeHandle.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Frees all resources associated with the handle.
(Inherited from SafeHandle.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReleaseHandle
When overridden in a derived class, executes the code required to free the handle.
(Overrides SafeHandleReleaseHandle.)
Protected methodSetHandle
Sets the handle to the specified pre-existing handle.
(Inherited from SafeHandle.)
Public methodSetHandleAsInvalid
Marks a handle as no longer used.
(Inherited from SafeHandle.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldhandle
Specifies the handle to be wrapped.
(Inherited from SafeHandle.)
Top
Properties
  NameDescription
Public propertyIsClosed
Gets a value indicating whether the handle is closed.
(Inherited from SafeHandle.)
Public propertyIsInvalid
Gets a value that indicates whether the handle is invalid.
(Inherited from SafeHandleZeroOrMinusOneIsInvalid.)
Top
See Also