C# Class ConnectUNCWithCredentials.UNCAccessWithCredentials

Inheritance: IDisposable
ファイルを表示 Open project: cdadmin/clonedeploy Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
NetUseDelete ( ) : bool

Ends the connection to the remote resource

NetUseWithCredentials ( string UNCPath, string User, string Domain, string Password ) : bool

Connects to a UNC path using the credentials supplied.

UNCAccessWithCredentials ( ) : System

A disposeable class that allows access to a UNC resource with credentials.

Private Methods

Method Description
NetUseAdd ( System.String UncServerName, UInt32 Level, USE_INFO_2 &Buf, UInt32 &ParmError ) : UInt32
NetUseDel ( System.String UncServerName, System.String UseName, UInt32 ForceCond ) : UInt32
NetUseWithCredentials ( ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

NetUseDelete() public method

Ends the connection to the remote resource
public NetUseDelete ( ) : bool
return bool

NetUseWithCredentials() public method

Connects to a UNC path using the credentials supplied.
public NetUseWithCredentials ( string UNCPath, string User, string Domain, string Password ) : bool
UNCPath string Fully qualified domain name UNC path
User string A user with sufficient rights to access the path.
Domain string Domain of User.
Password string Password of User
return bool

UNCAccessWithCredentials() public method

A disposeable class that allows access to a UNC resource with credentials.
public UNCAccessWithCredentials ( ) : System
return System