Click or drag to resize

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
Syntax
public bool NetUseWithCredentials(
	string UNCPath,
	string Domain,
	string User,
	string Password
)

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: Boolean
True if mapping succeeds. Use LastError to get the system error code.
See Also