File.SetReadOnly

Syntax:

SetReadOnly(<ReadOnly>)

Parameters:

<ReadOnly> (required)

Type: Boolean.
True - enable "Read only" attribute, False - disable "Read only" attribute.

Description:

Enables the value of the "Read only" file attribute.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

Applies only to files or directories that actually exist.
To use the method on the web-client, you should preliminarily attach the extension for working with files.

Example:

Selection.SetReadOnly(True);

See also:

File, method BeginSettingReadOnly

    

1C:Enterprise Developer's Community