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

File::SetAttributes method

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

static void System::IO::File::SetAttributes(const String &path, FileAttributes fileAttributes)
参数类型描述
路径const String&要设置属性的文件的路径
fileAttributesFileAttributes表示要设置的属性的 FileAttributes 值的按位组合

另见