TypeSchema.GetViews Method

Note: This method is new in the .NET Framework version 2.0.

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
public final IDataSourceViewSchema[] GetViews ()
public final function GetViews () : IDataSourceViewSchema[]

Return Value

An array of instances of IDataSourceViewSchema, or of instances of a class that implements the IDataSourceViewSchema.

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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

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

.NET Framework

Supported in: 2.0
Show: