DataSource.ReadOnly property

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
    Get
'Usage
Dim instance As DataSource
Dim value As Boolean

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

Property value

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

See also

Reference

DataSource class

DataSource members

Microsoft.Office.InfoPath namespace