DataSourceSelectArguments.AddSupportedCapabilities Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds one capability to the DataSourceSelectArguments instance, which is used to compare supported capabilities and requested capabilities.
public:
void AddSupportedCapabilities(System::Web::UI::DataSourceCapabilities capabilities);
public void AddSupportedCapabilities (System.Web.UI.DataSourceCapabilities capabilities);
member this.AddSupportedCapabilities : System.Web.UI.DataSourceCapabilities -> unit
Public Sub AddSupportedCapabilities (capabilities As DataSourceCapabilities)
Parameters
- capabilities
- DataSourceCapabilities
One of the DataSourceCapabilities values.
Remarks
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.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈