SiteMapDataSource.GetViewNames Method ()

 

Retrieves a collection of named views for the data source control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public virtual ICollection GetViewNames()

Return Value

Type: System.Collections.ICollection

An ICollection of named SiteMapDataSourceView objects associated with the SiteMapDataSource. Because the SiteMapDataSource supports only one named view, the GetViewNames method returns an ICollection with one String.Empty element.

The GetViewNames method returns a collection with one element (the default name) instead of null so that the ContainsListCollection method returns true.

.NET Framework
Available since 2.0
Return to top
Show: