Condividi tramite


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)
Available in Sandboxed Solutions: No

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