RefreshSchema Method

DataSourceDesigner.RefreshSchema Method (Boolean)

 

Refreshes the schema from the data source, while optionally suppressing events.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public virtual void RefreshSchema(
	bool preferSilent
)

Parameters

preferSilent
Type: System.Boolean

true to allow events when refreshing the schema; false to disable the DataSourceChanged and SchemaRefreshed events when refreshing the schema.

Exception Condition
NotSupportedException

An attempt was made to invoke this method in the base class.

The RefreshSchema method is not supported in the DataSourceDesigner class. However, it is supported in derived classes, such as the XmlDataSourceDesigner class.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft