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

  • viewName
    Type: System.String

    A 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".

See Also

Reference

SPDataSourceView Class

SPDataSourceView Members

Microsoft.SharePoint.WebControls Namespace