DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError(DataSourceView) 方法

定義

比較 ExecuteSelect(DataSourceSelectArguments) 作業要求的功能與指定資料來源檢視支援的功能。Compares the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the specified data source view supports.

public:
 void RaiseUnsupportedCapabilitiesError(System::Web::UI::DataSourceView ^ view);
public void RaiseUnsupportedCapabilitiesError (System.Web.UI.DataSourceView view);
member this.RaiseUnsupportedCapabilitiesError : System.Web.UI.DataSourceView -> unit
Public Sub RaiseUnsupportedCapabilitiesError (view As DataSourceView)

參數

view
DataSourceView

執行資料擷取作業的資料來源檢視。The data source view that performs the data retrieval operation.

例外狀況

資料來源檢視不支援指定的資料來源功能。The data source view does not support the data source capability specified.

備註

RaiseUnsupportedCapabilitiesError(DataSourceView)資料繫結控制項會使用方法來比較類別屬性所表示的其他所要求的功能 DataSourceSelectArguments ,例如能夠以資料來源視圖所支援的功能來排序或逐頁查看結果集。The RaiseUnsupportedCapabilitiesError(DataSourceView) 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. 此視圖會 RaiseUnsupportedCapabilityError(DataSourceCapabilities) 針對列舉中所定義的每個可能功能呼叫它自己的方法 DataSourceCapabilitiesThe view calls its own RaiseUnsupportedCapabilityError(DataSourceCapabilities) method for each possible capability defined in the DataSourceCapabilities enumeration.

重要

如果 DataSourceSelectArguments 已設定任何屬性,但目前系結的資料來源控制項不支援所要求的功能,則會 InvalidOperationException 在呼叫方法時擲 DataSourceSelectArguments.RaiseUnsupportedCapabilitiesError(DataSourceView) 回例外狀況。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(DataSourceView) method is called.

適用於

另請參閱