SiteMapDataSource.GetViewNames SiteMapDataSource.GetViewNames SiteMapDataSource.GetViewNames SiteMapDataSource.GetViewNames Method

Definition

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

public:
 virtual System::Collections::ICollection ^ GetViewNames();
public virtual System.Collections.ICollection GetViewNames ();
abstract member GetViewNames : unit -> System.Collections.ICollection
override this.GetViewNames : unit -> System.Collections.ICollection
Public Overridable Function GetViewNames () As ICollection

Returns

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 Empty element.

Implements

Remarks

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

Applies to

See also