Export (0) Print
Expand All

XmlForm.ReadOnly property

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)

public abstract bool ReadOnly { get; }

Property value

Type: System.Boolean
true if the form template is read-only or locked; otherwise false.

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 InfoPath Filler or in a Web browser.

Community Additions

Show:
© 2014 Microsoft