Edit

Share via


DataSource.ReadOnly Property

Definition

Gets a value that indicates whether the data source is in a read-only state.

public:
 abstract property bool ReadOnly { bool get(); };
public abstract bool ReadOnly { get; }
member this.ReadOnly : bool
Public MustOverride ReadOnly Property ReadOnly As Boolean

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

Applies to