C# Класс ConnectUNCWithCredentials.UNCAccessWithCredentials

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

NetUseDelete() публичный Метод

Ends the connection to the remote resource
public NetUseDelete ( ) : bool
Результат bool

NetUseWithCredentials() публичный Метод

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
Результат bool

UNCAccessWithCredentials() публичный Метод

A disposeable class that allows access to a UNC resource with credentials.
public UNCAccessWithCredentials ( ) : System
Результат System