Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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)

Property Value

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

Community Additions

© 2015 Microsoft