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.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public DriveConnection(
string remoteName,
NetworkCredential credentials,
bool prompt
)
Public Sub New (
remoteName As String,
credentials As NetworkCredential,
prompt As Boolean
)
public:
DriveConnection(
String^ remoteName,
NetworkCredential^ credentials,
bool prompt
)
new :
remoteName : string *
credentials : NetworkCredential *
prompt : bool -> DriveConnection
Parameters
- remoteName
- Type: SystemString
The network resource to connect to. The string can be up to MAX_PATH 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 pop-ups an authentication dialog box.
See Also