System::IO::File::SetAttributes 方法

File::SetAttributes method

为指定文件设置指定的属性。

static void System::IO::File::SetAttributes(const String &path, FileAttributes fileAttributes)
ParameterType描述
路径const String&要设置属性的文件的路径
fileAttributesFileAttributes一个表示要设置属性的 FileAttributes 值的位掩码组合

另见