System.Web.UI.IDataSource.GetViewNames Method

Gets a collection of names representing the list of view objects associated with the System.Web.UI.IDataSource interface.

Syntax

public ICollection GetViewNames ()

Returns

An ICollection that contains the names of the views associated with the System.Web.UI.IDataSource.

Remarks

Data source control classes can support one or more named views on their underlying data. The IDataSource.GetViewNames method returns a collection of view names currently associated with the data source control instance. Callers can iterate through the collection of view names and retrieve individual System.Web.UI.DataSourceView objects with the IDataSource.GetView(string) method.

Data source control classes that implement the System.Web.UI.IDataSource interface implement the IDataSource.GetViewNames method to return a collection of names that represents all the data source view objects currently associated with the data source control class.

Requirements

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