FileSetAttributes Method (KernelTransaction, String, FileAttributes) |
[AlphaFS] Sets the specified
FileAttributes of the file on the specified path.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void SetAttributes(
KernelTransaction transaction,
string path,
FileAttributes fileAttributes
)
Public Shared Sub SetAttributes (
transaction As KernelTransaction,
path As String,
fileAttributes As FileAttributes
)
public:
static void SetAttributes(
KernelTransaction^ transaction,
String^ path,
FileAttributes fileAttributes
)
static member SetAttributes :
transaction : KernelTransaction *
path : string *
fileAttributes : FileAttributes -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The path to the file. - fileAttributes
- Type: System.IOFileAttributes
A bitwise combination of the enumeration values.
Remarks
Certain file attributes, such as
Hidden and
ReadOnly, can be combined.
Other attributes, such as
Normal, must be used alone.
Remarks
It is not possible to change the
Compressed status of a File object using this method.
See Also