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)

abstract GetViews : unit -> IDataSourceViewSchema[]
override GetViews : unit -> IDataSourceViewSchema[]

Return Value

Type: System.Web.UI.Design.IDataSourceViewSchema[]

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

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.

.NET Framework
Available since 2.0
Return to top
Show: