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 ()
public ICollection GetViewNames ()
public function GetViewNames () : ICollection
Not applicable.

Return Value

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 a null reference (Nothing in Visual Basic) so that the ContainsListCollection method returns true.

NoteNote:

If you are not familiar with the data access features in ASP.NET 2.0, you might find it useful to review the following topics before continuing:

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: