Class CurrentUserSecurity
Helper to check the access level on a file/directory for the current user
Inheritance
System.Object
CurrentUserSecurity
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.PatchInstaller
Assembly: Simplic.PatchInstaller.dll
Syntax
public class CurrentUserSecurity
Constructors
| Improve this Doc View SourceCurrentUserSecurity()
Declaration
public CurrentUserSecurity()
Methods
| Improve this Doc View SourceHasAccess(DirectoryInfo, FileSystemRights)
Declaration
public bool HasAccess(DirectoryInfo directory, FileSystemRights right)
Parameters
Type | Name | Description |
---|---|---|
System.IO.DirectoryInfo | directory | |
System.Security.AccessControl.FileSystemRights | right |
Returns
Type | Description |
---|---|
System.Boolean |
HasAccess(FileInfo, FileSystemRights)
Declaration
public bool HasAccess(FileInfo file, FileSystemRights right)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | file | |
System.Security.AccessControl.FileSystemRights | right |
Returns
Type | Description |
---|---|
System.Boolean |