File.SetAttributesTransacted Method (KernelTransaction, String, FileAttributes, PathFormat) |
[AlphaFS] Sets the specified
FileAttributes of the file on the specified path.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void SetAttributesTransacted(
KernelTransaction transaction,
string path,
FileAttributes fileAttributes,
PathFormat pathFormat
)
Public Shared Sub SetAttributesTransacted (
transaction As KernelTransaction,
path As String,
fileAttributes As FileAttributes,
pathFormat As PathFormat
)
public:
static void SetAttributesTransacted(
KernelTransaction^ transaction,
String^ path,
FileAttributes fileAttributes,
PathFormat pathFormat
)
static member SetAttributesTransacted :
transaction : KernelTransaction *
path : string *
fileAttributes : FileAttributes *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.Filesystem.KernelTransaction
The transaction. - path
- Type: System.String
The path to the file. - fileAttributes
- Type: System.IO.FileAttributes
A bitwise combination of the enumeration values. - pathFormat
- Type: Alphaleonis.Win32.Filesystem.PathFormat
Indicates the format of the path parameter(s).
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