This documentation is archived and is not being maintained.

TypeSchema::GetViews Method

Gets an array of schema descriptors for views into a data source.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public:
virtual array<IDataSourceViewSchema^>^ GetViews() sealed

Return Value

Type: array<System.Web.UI.Design::IDataSourceViewSchema>
An array of instances of IDataSourceViewSchema, or of instances of a class that implements the IDataSourceViewSchema interface.

Implements

IDataSourceSchema::GetViews()

Although the GetViews method always returns an array of IDataSourceViewSchema objects that implement the IDataSourceViewSchema interface, the exact return value is dependent on the object that is provided when creating the instance of the TypeSchema class.

The following table provides examples of return values.

Underlying Type

Return Value

A DataSet

An array of type DataSetViewSchema, one for each DataTable.

A DataTable

A one-item array containing a DataSetViewSchema.

An IEnumerable type

A one-item array containing an IDataSourceViewSchema.

Any other type

A one-item array containing an IDataSourceViewSchema.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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, 3.0, 2.0
Show: