XmlForm.ReadOnly Property (Microsoft.Office.InfoPath)

Gets a value that indicates whether a form template is read-only or locked.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property ReadOnly As Boolean
'Usage
Dim instance As XmlForm
Dim value As Boolean

value = instance.ReadOnly
public abstract bool ReadOnly { get; }

Property Value

true if the form template is read-only or locked; otherwise false.

Remarks

If the ReadOnly property is true, the form template has been placed in a read-only or locked state. Changes can still be made to the form template, but it cannot be saved to the same name using a Save operation; it must be saved to a new name using a SaveAs operation.

To determine whether the form's underlying XML document has been placed in a read-only state, use the ReadOnly property of the DataSource class. To access the ReadOnly property for the current form, you can use the MainDataSource property to access an instance of the DataSource class that represents the current form's underlying XML document.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

This type or member can be accessed from code running in forms opened in Microsoft Office InfoPath 2007 or in a Web browser.

See Also

Reference

XmlForm Class
XmlForm Members
Microsoft.Office.InfoPath Namespace