Click or drag to resize
DriveConnection Class
Used to create a temporary connection to a network resource that will be disconnected once this instance is disposed.
Inheritance Hierarchy
SystemObject
  Alphaleonis.Win32.NetworkDriveConnection

Namespace: Alphaleonis.Win32.Network
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public sealed class DriveConnection : IDisposable

The DriveConnection type exposes the following members.

Constructors
  NameDescription
Public methodDriveConnection(String)
Creates a temporary connection to a network resource. The function can redirect a local device to a network resource, using the current user credentials.
Public methodDriveConnection(String, NetworkCredential, Boolean)
Creates a temporary connection to a network resource. The function can redirect a local device to a network resource, NetworkCredential can be supplied.
Public methodDriveConnection(String, String, String, Boolean)
Creates a temporary connection to a network resource. The function can redirect a local device to a network resource, using a user name and password.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by the DriveConnection class.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
DriveConnection class destructor.
(Overrides ObjectFinalize.)
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.)
Public methodToString
Returns the last available drive letter used for this connection.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyLocalName
The last available drive letter used for this connection.
Public propertyShare
The path originally specified by the user.
Top
See Also