SPDataSource.GetViewNames method

Returns the collection of view names that are associated with the data source control.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overrides Function GetViewNames As ICollection
'Usage
Dim returnValue As ICollection

returnValue = Me.GetViewNames()
protected override ICollection GetViewNames()

Return value

Type: System.Collections.ICollection
A System.Collections.ICollection object with a collection that contains only one element, the name of the default data view.

Remarks

The ICollection object that is returned is the allowable set of values that can be passed to the GetView(String) method. At present only one name is included in the collection, the value of the DefaultViewName field.

See also

Reference

SPDataSource class

SPDataSource members

Microsoft.SharePoint.WebControls namespace

GetView(String)

DefaultViewName