IsReadOnly Property

The IsReadOnly property contains the flag that indicates whether the item is read-only.

Property IsReadOnly As Boolean[C++]
Get method:
HRESULT get_IsReadOnly(VARIANT_BOOL*pIsReadOnly);
Put method:
HRESULT put_IsReadOnly(VARIANT_BOOLvarIsReadOnly);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Boolean that contains the flag that indicates whether the item is read-only.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • pIsReadOnly
    [out, retval] Pointer to a VARIANT_BOOL that contains the flag that indicates whether the item is read-only.

Put method:

  • varIsReadOnly
    [in] VARIANT_BOOL that contains the flag that indicates whether the item is read-only.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

The IsReadOnly property is the same as the file-system read-only attribute. However, because SharePoint Portal Server has a separate mechanism for access restrictions, this property does not indicate what permissions the user has for the item. IsReadOnly corresponds to the searchable property "DAV:isreadonly".