GetViewNames method
Collapse the table of content
Expand the table of content

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)

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.

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.

Show:
© 2016 Microsoft