This documentation is archived and is not being maintained.

DataSourceSelectArguments.AddSupportedCapabilities Method

Adds one capability to the DataSourceSelectArguments instance, which is used to compare supported capabilities and requested capabilities.

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

public void AddSupportedCapabilities(
	DataSourceCapabilities capabilities
)

Parameters

capabilities
Type: System.Web.UI.DataSourceCapabilities

One of the DataSourceCapabilities values.

Data source controls call the AddSupportedCapabilities(DataSourceCapabilities) method for each capability the data source supports. After the capabilities are added, any call to the RaiseUnsupportedCapabilitiesError(DataSourceView) method compares the supported capabilities against the requested capabilities (represented by setting the SortExpression, RetrieveTotalRowCount, MaximumRows, and StartRowIndex properties). For example, if a capability such as Sort is not added but the SortExpression property is set, the RaiseUnsupportedCapabilitiesError(DataSourceView) method throws a NotSupportedException exception.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: