Export (0) Print
Expand All

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.

Community Additions

Show:
© 2014 Microsoft