IsReadOnly property

For IERUAccessControl, sets or returns whether the object is marked read-only.

For IERUAccessStyle, returns but does not set whether the object is marked read-only.

Syntax


C++

HRESULT get_IsReadOnly(VARIANT_BOOL* pIsReadOnly)

HRESULT put_IsReadOnly(VARIANT_BOOL myIsReadOnly)

Scripting languages

Boolean = Object.IsReadOnly

Object.IsReadOnly = Boolean

Remarks


Only users who can edit an object can mark the object as read-only.

Read-only objects cannot be modified or reserved for editing.

IERUAccessStyle::IsReadOnly tells us if the access style itself is editable, not that the item is read-only as with IERUAccessControl::IsReadOnly.

When you get an IERUAccessStyle from a site item, it's read-only.  If you get one from a Group's Access Control, it is not read-only.

Home

Applies to

IERUAccessControl

IERUAccessStyle


See also

Read-only access