set_IsReadOnly()

FileInfo::set_IsReadOnly(bool) method

Sets or unsets the ReadOnly attribute on the file.

void System::IO::FileInfo::set_IsReadOnly(bool value)

Arguments

ParameterTypeDescription
valueboolTrue if the ReadOnly attribute has to be set, false if the ReadOnly attribute has to be unset

See Also