UtilFileSetRights(FileInfo, FileSystemRights, AccessControlType) Method
Sets the user-rights of a file.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetRights(
FileInfo file,
FileSystemRights rights,
AccessControlType accessControlType
)
Public Shared Sub SetRights (
file As FileInfo,
rights As FileSystemRights,
accessControlType As AccessControlType
)
Dim file As FileInfo
Dim rights As FileSystemRights
Dim accessControlType As AccessControlType
UtilFile.SetRights(file, rights, accessControlType)
public:
static void SetRights(
FileInfo^ file,
FileSystemRights rights,
AccessControlType accessControlType
)
static member SetRights :
file : FileInfo *
rights : FileSystemRights *
accessControlType : AccessControlType -> unit
No code example is currently available or this language may not be supported.
Parameters
- file FileInfo
-
The source file.
- rights FileSystemRights
-
The user-rights.
- accessControlType AccessControlType
-
The access control type, determines whether to allowe user-rights or deny user-rights.
This is a code example.
No code example is currently available or this language may not be supported.
Dim file As New FileInfo("C:\File.ext")
SetRights(file, FileSystemRights.Read Or FileSystemRights.Write, AccessControlType.Allow)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.