Метод | Описание | |
---|---|---|
CheckPermissions ( System.Security.Principal.WindowsIdentity user, string path, FileSystemRights expectedRights ) : bool |
Checks the permissions.
|
|
CheckPermissions ( string userAndDomain, string pass, string path, FileSystemRights rights ) : bool |
Checks the permissions.
|
Метод | Описание | |
---|---|---|
CloseHandle ( |
||
ExtractDomain ( string path ) : string |
Extracts the domain.
|
|
ExtractUserName ( string path ) : string |
Extracts the name of the user.
|
|
LogonUser ( String lpszUsername, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, SafeTokenHandle &phToken ) : bool |
public static CheckPermissions ( System.Security.Principal.WindowsIdentity user, string path, FileSystemRights expectedRights ) : bool | ||
user | System.Security.Principal.WindowsIdentity | The user. |
path | string | The path. |
expectedRights | FileSystemRights | The expected rights. |
Результат | bool |
public static CheckPermissions ( string userAndDomain, string pass, string path, FileSystemRights rights ) : bool | ||
userAndDomain | string | The user and domain. |
pass | string | The pass. |
path | string | The path. |
rights | FileSystemRights | The rights. |
Результат | bool |