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)


<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Protected Overrides Function GetViewNames As ICollection

Dim returnValue As ICollection

returnValue = Me.GetViewNames()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
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.

See Also


SPDataSource Class

SPDataSource Members

Microsoft.SharePoint.WebControls Namespace