DataSetFieldSchema Class
TOC
Collapse the table of content
Expand the table of content

DataSetFieldSchema Class

 

Represents the structure, or schema, of a data field.

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

System.Object
  System.Web.UI.Design.DataSetFieldSchema

public sealed class DataSetFieldSchema : IDataSourceFieldSchema

NameDescription
System_CAPS_pubmethodDataSetFieldSchema(DataColumn)

Initializes a new instance of the DataSetFieldSchema class using a specified DataColumn.

NameDescription
System_CAPS_pubpropertyDataType

Gets the type of data stored in the data field.

System_CAPS_pubpropertyIdentity

Gets a value indicating whether the value of the data field automatically increments for each new row added to the table or view.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the DataColumn is read-only.

System_CAPS_pubpropertyIsUnique

Gets a value indicating whether values in the data field are required to be unique.

System_CAPS_pubpropertyLength

Gets a value indicating the size of data that can be stored in the data field.

System_CAPS_pubpropertyName

Gets the name of the data field.

System_CAPS_pubpropertyNullable

Gets a value indicating whether the data field can accept null values.

System_CAPS_pubpropertyPrecision

Gets the maximum number of digits used to represent a numerical value in the data field.

System_CAPS_pubpropertyPrimaryKey

Gets a value indicating whether the data field is in the primary key for the containing table or view.

System_CAPS_pubpropertyScale

Gets the number of decimal places to which numerical values in the data field are resolved.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Use the DataSetFieldSchema class to get the properties of a data field using a DataColumn. You can discover the structure of a data field by using the following properties in this class: DataType, IsReadOnly, Length, Name, and IsUnique. In addition, you can use the Identity property to determine if a data column is set for AutoIncrement, or the PrimaryKey property to determine if a data column is in the primary key.

The DataSetFieldSchema class is used by custom control designer components to provide information about a data field at design time.

To examine the components of data using a DataSet, use the following classes.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft