Compartilhar via


SPDataSource.GetView Method

Gets the default view as an SPDataSourceView object.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function GetView As SPDataSourceView
'Usage
Dim instance As SPDataSource
Dim returnValue As SPDataSourceView

returnValue = instance.GetView()
public SPDataSourceView GetView()

Return Value

Type: Microsoft.SharePoint.WebControls.SPDataSourceView
An SPDataSourceView object that represents the default data view.

Remarks

The SPDataSource class supports only one data view.

See Also

Reference

SPDataSource Class

SPDataSource Members

GetView Overload

Microsoft.SharePoint.WebControls Namespace