SetAttributes()

File::SetAttributes(const String&, FileAttributes) method

Sets the specified attributes on the specified file.

static void System::IO::File::SetAttributes(const String &path, FileAttributes fileAttributes)

Arguments

ParameterTypeDescription
pathconst String&The path of the file on which the attributes to be set
fileAttributesFileAttributesA bitwise combination of FileAttributes values representing the attributes to set

See Also