Click or drag to resize

FileSetAttributes Method (String, FileAttributes, PathFormat)

[AlphaFS] Sets the specified FileAttributes of the file or directory on the specified path.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static void SetAttributes(
	string path,
	FileAttributes fileAttributes,
	PathFormat pathFormat
)

Parameters

path
Type: SystemString
The path to the file or directory.
fileAttributes
Type: System.IOFileAttributes
A bitwise combination of the enumeration values.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
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