TypeSchema.GetViews Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an array of schema descriptors for views into a data source.
public:
virtual cli::array <System::Web::UI::Design::IDataSourceViewSchema ^> ^ GetViews();
public System.Web.UI.Design.IDataSourceViewSchema[] GetViews ();
abstract member GetViews : unit -> System.Web.UI.Design.IDataSourceViewSchema[]
override this.GetViews : unit -> System.Web.UI.Design.IDataSourceViewSchema[]
Public Function GetViews () As IDataSourceViewSchema()
Returns
An array of instances of IDataSourceViewSchema, or of instances of a class that implements the IDataSourceViewSchema interface.
Implements
Remarks
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. |
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應