This documentation is archived and is not being maintained.

DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError Method

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

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public void RaiseUnsupportedCapabilitiesError (
	DataSourceView view
)
public void RaiseUnsupportedCapabilitiesError (
	DataSourceView view
)
public function RaiseUnsupportedCapabilitiesError (
	view : DataSourceView
)
Not applicable.

Parameters

view

The data source view that performs the data retrieval operation.

Exception typeCondition

NotSupportedException

The data source view does not support the data source capability specified.

The RaiseUnsupportedCapabilitiesError method is used by data-bound controls to compare additional requested capabilities represented by the properties of the 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 RaiseUnsupportedCapabilityError method for each possible capability defined in the DataSourceCapabilities enumeration.

NoteImportant:

If any of the 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 method is called.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: