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
public void AddSupportedCapabilities (
	DataSourceCapabilities capabilities
public function AddSupportedCapabilities (
	capabilities : DataSourceCapabilities
Not applicable.



One of the DataSourceCapabilities values.

Data source controls call the AddSupportedCapabilities method for each capability the data source supports. After the capabilities are added, any call to the RaiseUnsupportedCapabilitiesError 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 method throws a NotSupportedException exception.

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

Community Additions