LinqDataSource.GetView(String) 方法

定義

傳回與 LinqDataSource 物件建立關聯的資料來源檢視。

protected:
 override System::Web::UI::DataSourceView ^ GetView(System::String ^ viewName);
protected override System.Web.UI.DataSourceView GetView (string viewName);
override this.GetView : string -> System.Web.UI.DataSourceView
Protected Overrides Function GetView (viewName As String) As DataSourceView

參數

viewName
String

要擷取的檢視名稱,必須為 "DefaultView"。

傳回

DataSourceView

LinqDataSource 物件建立關聯的資料來源檢視。

實作

例外狀況

viewName 為 null (Visual Basic 中沒有任何項目) 或 "DefaultView" 以外的項目。

備註

控制項 LinqDataSource 只支援一個資料來源檢視。 物件 LinqDataSourceView 的預設名稱為 「DefaultView」。 物件 LinqDataSourceView 會定義資料來源控制項的功能、從基礎資料庫擷取資料,以及執行排序、插入、刪除和更新等作業。

適用於

另請參閱