SqlDataSource.CreateDataSourceView(String) SqlDataSource.CreateDataSourceView(String) SqlDataSource.CreateDataSourceView(String) SqlDataSource.CreateDataSourceView(String) Method

定义

创建与数据源控件关联的数据源视图对象。Creates a data source view object that is associated with the data source control.

protected:
 virtual System::Web::UI::WebControls::SqlDataSourceView ^ CreateDataSourceView(System::String ^ viewName);
protected virtual System.Web.UI.WebControls.SqlDataSourceView CreateDataSourceView (string viewName);
abstract member CreateDataSourceView : string -> System.Web.UI.WebControls.SqlDataSourceView
override this.CreateDataSourceView : string -> System.Web.UI.WebControls.SqlDataSourceView
Protected Overridable Function CreateDataSourceView (viewName As String) As SqlDataSourceView

参数

viewName
String String String String

数据源视图的名称。The name of the data source view.

返回

注解

SqlDataSource类派生的类可以CreateDataSourceView重写方法以返回强类型化的数据源视图对象。Classes that derive from the SqlDataSource class can override the CreateDataSourceView method to return strongly typed data source view objects.

适用于

另请参阅