Redigera

Dela via


DataSetFieldSchema Class

Definition

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

public ref class DataSetFieldSchema sealed : System::Web::UI::Design::IDataSourceFieldSchema
public sealed class DataSetFieldSchema : System.Web.UI.Design.IDataSourceFieldSchema
type DataSetFieldSchema = class
    interface IDataSourceFieldSchema
Public NotInheritable Class DataSetFieldSchema
Implements IDataSourceFieldSchema
Inheritance
DataSetFieldSchema
Implements

Remarks

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.

Constructors

DataSetFieldSchema(DataColumn)

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

Properties

DataType

Gets the type of data stored in the data field.

Identity

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

IsReadOnly

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

IsUnique

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

Length

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

Name

Gets the name of the data field.

Nullable

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

Precision

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

PrimaryKey

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

Scale

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

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also