DataSetViewSchema 类

定义

表示 DataTable 的结构或架构。Represents the structure, or schema, of a DataTable. 无法继承此类。This class cannot be inherited.

public ref class DataSetViewSchema sealed : System::Web::UI::Design::IDataSourceViewSchema
public sealed class DataSetViewSchema : System.Web.UI.Design.IDataSourceViewSchema
type DataSetViewSchema = class
    interface IDataSourceViewSchema
Public NotInheritable Class DataSetViewSchema
Implements IDataSourceViewSchema
继承
DataSetViewSchema
实现

注解

使用 DataSetViewSchema 类在设计时使用 DataTable 来列出数据的结构。Use the DataSetViewSchema class to list the structure of data using a DataTable at design time. 使用 GetFields 方法可获取有关每个字段的信息的列表(DataColumn 对象)。Use the GetFields method to get a list of information about each field as DataColumn objects.

在设计时,自定义控件设计器组件使用 DataSetViewSchema 类向用户提供 UI 选项,该选项可准确反映数据的结构。The DataSetViewSchema class is used by custom control designer components to provide UI options to the user at design time that accurately reflect the structure of the data.

若要使用 DataSet检查数据的组件,请使用以下类。To examine the components of data using a DataSet, use the following classes.

构造函数

DataSetViewSchema(DataTable)

使用指定的 DataSetViewSchema 创建 DataTable 类的实例。Creates an instance of the DataSetViewSchema class using a specified DataTable.

属性

Name

使用视图的 TableName 属性获取其名称。Gets the name of the view using its TableName property.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetChildren()

获取一个数组,该数组表示包含在当前视图中的子视图。Gets an array representing the child views contained in the current view.

GetFields()

获取一个数组,该数组包含视图中每个数据字段的有关信息。Gets an array containing information about each data field in the view.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅