SPDataSourceView Constructor
Initializes a new instance of the SPDataSourceView class.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
dataSourceOwner As IDataSource, _
viewName As String _
)
'Usage
Dim dataSourceOwner As IDataSource
Dim viewName As String
Dim instance As New SPDataSourceView(dataSourceOwner, _
viewName)
public SPDataSourceView(
IDataSource dataSourceOwner,
string viewName
)
Parameters
dataSourceOwner
Type: System.Web.UI.IDataSourceThe data source control that owns the SPDataSourceView object.
viewName
Type: System.StringA name for the data source view. The name must be unique within the scope of the data source control that owns it.
Remarks
The SPDataSourceView constructor is called by the SPDataSource.GetView() method to return a new instance of a data source view with the name "DefaultView".