HostConnectTo Method (String, NetworkCredential, Boolean, Boolean, Boolean) |
Creates a connection to a network resource.
Namespace: Alphaleonis.Win32.NetworkAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void ConnectTo(
string remoteName,
NetworkCredential credentials,
bool prompt,
bool updateProfile,
bool saveCredentials
)
Public Shared Sub ConnectTo (
remoteName As String,
credentials As NetworkCredential,
prompt As Boolean,
updateProfile As Boolean,
saveCredentials As Boolean
)
public:
static void ConnectTo(
String^ remoteName,
NetworkCredential^ credentials,
bool prompt,
bool updateProfile,
bool saveCredentials
)
static member ConnectTo :
remoteName : string *
credentials : NetworkCredential *
prompt : bool *
updateProfile : bool *
saveCredentials : bool -> unit
Parameters
- remoteName
- Type: SystemString
A network resource to connect to, for example: \\server or \\server\share. - 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. - updateProfile
- Type: SystemBoolean
successful network resource connections will be saved. - saveCredentials
- Type: SystemBoolean
When the operating system prompts for a credential, the credential should be saved by the credential manager when true.
Exceptions See Also