HostDisconnectDrive Method (String, Boolean, Boolean) |
Cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void DisconnectDrive(
string localName,
bool force,
bool updateProfile
)
Public Shared Sub DisconnectDrive (
localName As String,
force As Boolean,
updateProfile As Boolean
)
public:
static void DisconnectDrive(
String^ localName,
bool force,
bool updateProfile
)
static member DisconnectDrive :
localName : string *
force : bool *
updateProfile : bool -> unit
Parameters
- localName
- Type: SystemString
The name of a local device to be disconnected, such as "F:". - force
- Type: SystemBoolean
Specifies whether the disconnection should occur if there are open files or jobs on the connection.
If this parameter is , the function fails if there are open files or jobs.
- updateProfile
- Type: SystemBoolean
successful removal of network resource connections will be saved.
See Also