System.Web.UI.WebControls.SiteMapDataSource.GetViewNames Method

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

Syntax

public virtual ICollection GetViewNames ()

Returns

An ICollection of named System.Web.UI.WebControls.SiteMapDataSourceView objects associated with the System.Web.UI.WebControls.SiteMapDataSource. Because the System.Web.UI.WebControls.SiteMapDataSource supports only one named view, the SiteMapDataSource.GetViewNames method returns an ICollection with one string.Empty element.

Remarks

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

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0