Share via


Resource.IsReadOnly property

The IsReadOnly property retrieves a value indicating whether the resource is read-only.

This property is read-only.

Syntax

bIsReadOnly = Resource.IsReadOnly

Property value

True if the resource is read-only and false otherwise.

Remarks

In Windows 7 all resources are read-only. However, in future versions, resources may be modifiable.

Examples

The following JScript example uses IsReadOnly to determine whether the resource ringtone.Data can be written to.

// Test the "ringtone" Resource to see if it is read-only.
var readOnly = ringtone.Data.IsReadOnly;

if(!readOnly)
{
   // Perform some action.
}

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Resource Object