System.Web.UI.DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError Method

Compares the capabilities requested for an DataSourceView.ExecuteSelect(DataSourceSelectArguments) operation against those that the specified data source view supports.

Syntax

public void RaiseUnsupportedCapabilitiesError (DataSourceView view)

Parameters

view
The data source view that performs the data retrieval operation.

Remarks

The DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError(DataSourceView) method is used by data-bound controls to compare additional requested capabilities represented by the properties of the System.Web.UI.DataSourceSelectArguments class, such as the ability to sort or page through a result set, with the capabilities supported by the data source view. The view calls its own DataSourceView.RaiseUnsupportedCapabilityError(DataSourceCapabilities) method for each possible capability defined in the System.Web.UI.DataSourceCapabilities enumeration.

Note:

If any of the System.Web.UI.DataSourceSelectArguments properties are set, but the currently bound data source control does not support the requested capability, an InvalidOperationException exception is thrown when the DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError(DataSourceView) method is called.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0