C# Class ConnectUNCWithCredentials.UNCAccessWithCredentials

Inheritance: IDisposable
Afficher le fichier Open project: cdadmin/clonedeploy Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

NetUseDelete() public méthode

Ends the connection to the remote resource
public NetUseDelete ( ) : bool
Résultat bool

NetUseWithCredentials() public méthode

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
Résultat bool

UNCAccessWithCredentials() public méthode

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