 | UNCNetworkConnectionNetUseWithCredentials Method |
Connects to a UNC path using the credentials supplied.
Namespace:
Koden.Utils.IO
Assembly:
Koden.Utils.IO (in Koden.Utils.IO.dll) Version: 1.0.6453.26060
Syntaxpublic bool NetUseWithCredentials(
string UNCPath,
string Domain,
string User,
string Password
)
Public Function NetUseWithCredentials (
UNCPath As String,
Domain As String,
User As String,
Password As String
) As Boolean
public:
bool NetUseWithCredentials(
String^ UNCPath,
String^ Domain,
String^ User,
String^ Password
)
member NetUseWithCredentials :
UNCPath : string *
Domain : string *
User : string *
Password : string -> bool
Parameters
- UNCPath
- Type: SystemString
Fully qualified domain name UNC path - Domain
- Type: SystemString
Domain of User. - User
- Type: SystemString
A user with sufficient rights to access the path. - Password
- Type: SystemString
Password of User
Return Value
Type:
BooleanTrue if mapping succeeds. Use LastError to get the system error code.
See Also