DataSource.ReadOnly Property (Microsoft.Office.InfoPath)
Gets a value that indicates whether the data source is in a read-only state.
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 DataSource
Dim value As Boolean
value = instance.ReadOnly
public abstract bool ReadOnly { get; }
Property Value
true if the data source is read-only; otherwise false.
Remarks
For a DataSource object that represents a form's primary data source, if the ReadOnly property is true, data in the form's underlying XML document is in a read-only state and cannot be changed. If false, the data in the form's underlying XML document can be changed.
For a DataSource object that represents a secondary data source, the ReadOnly property always returns false.
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
DataSource Class
DataSource Members
Microsoft.Office.InfoPath Namespace