System::IO::FileInfo::set_IsReadOnly method

FileInfo::set_IsReadOnly method

设置或取消文件的只读属性。

void System::IO::FileInfo::set_IsReadOnly(bool value)
参数类型描述
bool如果需要设置只读属性则为 true,如果需要取消只读属性则为 false

另见