XmlDataSource.IDataSource.GetView(String) 方法

定義

取得與資料來源控制項關聯的具名資料來源檢視。Gets the named data source view associated with the data source control.

 virtual System::Web::UI::DataSourceView ^ System.Web.UI.IDataSource.GetView(System::String ^ viewName) = System::Web::UI::IDataSource::GetView;
System.Web.UI.DataSourceView IDataSource.GetView (string viewName);
abstract member System.Web.UI.IDataSource.GetView : string -> System.Web.UI.DataSourceView
override this.System.Web.UI.IDataSource.GetView : string -> System.Web.UI.DataSourceView
Function GetView (viewName As String) As DataSourceView Implements IDataSource.GetView

參數

viewName
String

要擷取的檢視名稱。The name of the view to retrieve. 如果 Empty 已指定,則會擷取 XmlDataSource 控制項的預設檢視。If Empty is specified, the default view for the XmlDataSource control is retrieved.

傳回

DataSourceView

傳回與 XmlDataSourceView 控制項關聯的具名 XmlDataSource 物件。Returns the named XmlDataSourceView object associated with the XmlDataSource control.

實作

適用於

另請參閱