DataSourceControl.System.Web.UI.IDataSource.GetViewNames Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets a collection of names, representing the list of DataSourceView objects associated with the DataSourceControl control.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

private:
virtual ICollection^ System.Web.UI.IDataSource.GetViewNames () sealed = IDataSource::GetViewNames
Not applicable.

Return Value

An ICollection that contains the names of the DataSourceView objects associated with the DataSourceControl.

NoteNote:

The DataSourceControl class's default implementation, which is called by this interface method, returns a null reference (Nothing in Visual Basic), which indicates that only one view is supported. If you extend the DataSourceControl class, override the GetViewNames method to return a collection of view names. A name can be passed to the GetView method to return a DataSourceView object.

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: