DataSourceDesigner.CanRefreshSchema Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the RefreshSchema(Boolean) method can be called.
public:
virtual property bool CanRefreshSchema { bool get(); };
public virtual bool CanRefreshSchema { get; }
member this.CanRefreshSchema : bool
Public Overridable ReadOnly Property CanRefreshSchema As Boolean
Property Value
true
if the RefreshSchema(Boolean) can be called; otherwise, false
. The default is false
.
Implements
Remarks
Use the CanRefreshSchema property in a derived class to enable or disable the ability to refresh the schema at design time for a specific data source. If your application requires an invariant data structure and the schema will never change, you want the CanRefreshSchema property to return false
.
A design host such as Visual Studio 2005 uses the CanRefreshSchema property to determine whether a command to refresh the schema appears in the action list menu at design time.
In a design host such as Visual Studio 2005, you can see the CanRefreshSchema property in action by completing the following process:
On your page, place a SqlDataSource or an AccessDataSource control.
In Design view, on the action list, click Configure.
Remove a few fields from the data source.
On the action list, click Refresh Schema.