Click or drag to resize

DriveConnection Constructor (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.

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public DriveConnection(
	string remoteName,
	NetworkCredential credentials,
	bool prompt
)

Parameters

remoteName
Type: SystemString
The network resource to connect to. The string can be up to MaxPath characters in length.
credentials
Type: System.NetNetworkCredential
An instance of NetworkCredential which provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
prompt
Type: SystemBoolean
always pops-up an authentication dialog box.
See Also