This documentation is archived and is not being maintained.

LinqDataSource.GetViewNames Method

Visual Studio 2008

Returns a collection of names that represents the list of view objects that are associated with the LinqDataSource control.

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

protected override ICollection GetViewNames()

Return Value

Type: System.Collections.ICollection
A collection with one element that contains the name "DefaultView".

The LinqDataSource control supports only one view on its underlying data, which is named "DefaultView". The GetViewNames method therefore returns a collection with only one element, which contains this view name.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: