C# Class System.Data.DataColumn

Inheritance: System.ComponentModel.MarshalByValueComponent
Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AddDependentColumn void
BindExpression void
CheckColumnConstraint void
CheckMaxLength bool
CheckMaxLength void
CheckNullable void
Clone DataColumn
Compare int
CompareValueTo bool
CompareValueTo int
ConvertObjectToXml string
ConvertObjectToXml void
ConvertValue object
ConvertXmlToObject object
ConvertXmlToObject object
Copy void
CopyValueIntoStore void
FindParentRelation DataRelation
FinishInitInProgress void
FreeRecord void
GetAggregateValue object
GetColumnValueAsString string
GetDataRow DataRow
GetEmptyColumnStore object
GetStringLength int
HandleDependentColumnList void
Init void
InitializeRecord void
InsureStorage void
InternalUnique void
IsAutoIncrementType bool
IsColumnMappingValid bool
IsInRelation bool
IsMaxLengthViolated bool
IsNotAllowDBNullViolated bool
IsNull bool
IsValueCustomTypeInstance bool
OnSetDataSet void
RemoveDependentColumn void
ResetCaption void
ResetNamespace void
SetCapacity void
SetMaxLengthSimpleType void
SetOrdinalInternal void
SetStorage void
SetTable void
SetValue void
ShouldSerializeCaption bool
ShouldSerializeDefaultValue bool
ShouldSerializeNamespace bool
UpdateColumnType void
this object

Public Methods

Method Description
DataColumn ( ) : System.Xml

Initializes a new instance of a class.

DataColumn ( string columnName ) : System.Xml

Inititalizes a new instance of the class using the specified column name.

DataColumn ( string columnName, Type dataType ) : System.Xml

Inititalizes a new instance of the class using the specified column name and data type.

DataColumn ( string columnName, Type dataType, string expr ) : System.Xml

Initializes a new instance of the class using the specified name, data type, and expression.

DataColumn ( string columnName, Type dataType, string expr, MappingType type ) : System.Xml

Initializes a new instance of the class using the specified name, data type, expression, and value that determines whether the column is an attribute.

SetOrdinal ( int ordinal ) : void
ToString ( ) : string

Protected Methods

Method Description
CheckNotAllowNull ( ) : void
CheckUnique ( ) : void
OnPropertyChanging ( PropertyChangedEventArgs pcevent ) : void
RaisePropertyChanging ( string name ) : void

Private Methods

Method Description
AddDependentColumn ( DataColumn expressionColumn ) : void
BindExpression ( ) : void
CheckColumnConstraint ( DataRow row, DataRowAction action ) : void
CheckMaxLength ( ) : bool
CheckMaxLength ( DataRow dr ) : void
CheckNullable ( DataRow row ) : void
Clone ( ) : DataColumn
Compare ( int record1, int record2 ) : int
CompareValueTo ( int record1, object value, bool checkType ) : bool
CompareValueTo ( int record1, object value ) : int
ConvertObjectToXml ( object value ) : string
ConvertObjectToXml ( object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib ) : void
ConvertValue ( object value ) : object
ConvertXmlToObject ( XmlReader xmlReader, XmlRootAttribute xmlAttrib ) : object
ConvertXmlToObject ( string s ) : object
Copy ( int srcRecordNo, int dstRecordNo ) : void
CopyValueIntoStore ( int record, object store, BitArray nullbits, int storeIndex ) : void
FindParentRelation ( ) : DataRelation

Finds a relation that this column is the sole child of or null.

FinishInitInProgress ( ) : void
FreeRecord ( int record ) : void
GetAggregateValue ( int records, AggregateType kind ) : object
GetColumnValueAsString ( DataRow row, DataRowVersion version ) : string
GetDataRow ( int index ) : DataRow
GetEmptyColumnStore ( int recordCount ) : object
GetStringLength ( int record ) : int
HandleDependentColumnList ( DataExpression oldExpression, DataExpression newExpression ) : void
Init ( int record ) : void
InitializeRecord ( int record ) : void
InsureStorage ( ) : void
InternalUnique ( bool value ) : void
IsAutoIncrementType ( Type dataType ) : bool
IsColumnMappingValid ( StorageType typeCode, MappingType mapping ) : bool
IsInRelation ( ) : bool

Returns true if this column is a part of a Parent or Child key for a relation.

IsMaxLengthViolated ( ) : bool
IsNotAllowDBNullViolated ( ) : bool
IsNull ( int record ) : bool
IsValueCustomTypeInstance ( object value ) : bool
OnSetDataSet ( ) : void
RemoveDependentColumn ( DataColumn expressionColumn ) : void
ResetCaption ( ) : void

Resets the property to its previous value, or to .

ResetNamespace ( ) : void
SetCapacity ( int capacity ) : void
SetMaxLengthSimpleType ( ) : void
SetOrdinalInternal ( int ordinal ) : void
SetStorage ( object store, BitArray nullbits ) : void
SetTable ( DataTable table ) : void

Internal mechanism for changing the table pointer.

SetValue ( int record, object value ) : void
ShouldSerializeCaption ( ) : bool

Gets a value indicating whether the has been explicitly set.

ShouldSerializeDefaultValue ( ) : bool
ShouldSerializeNamespace ( ) : bool
UpdateColumnType ( Type type, StorageType typeCode ) : void
this ( int record ) : object

This is how data is pushed in and out of the column.

Method Details

CheckNotAllowNull() protected method

protected CheckNotAllowNull ( ) : void
return void

CheckUnique() protected method

protected CheckUnique ( ) : void
return void

DataColumn() public method

Initializes a new instance of a class.
public DataColumn ( ) : System.Xml
return System.Xml

DataColumn() public method

Inititalizes a new instance of the class using the specified column name.
public DataColumn ( string columnName ) : System.Xml
columnName string
return System.Xml

DataColumn() public method

Inititalizes a new instance of the class using the specified column name and data type.
public DataColumn ( string columnName, Type dataType ) : System.Xml
columnName string
dataType Type
return System.Xml

DataColumn() public method

Initializes a new instance of the class using the specified name, data type, and expression.
public DataColumn ( string columnName, Type dataType, string expr ) : System.Xml
columnName string
dataType Type
expr string
return System.Xml

DataColumn() public method

Initializes a new instance of the class using the specified name, data type, expression, and value that determines whether the column is an attribute.
public DataColumn ( string columnName, Type dataType, string expr, MappingType type ) : System.Xml
columnName string
dataType Type
expr string
type MappingType
return System.Xml

OnPropertyChanging() protected method

protected OnPropertyChanging ( PropertyChangedEventArgs pcevent ) : void
pcevent System.ComponentModel.PropertyChangedEventArgs
return void

RaisePropertyChanging() protected method

protected RaisePropertyChanging ( string name ) : void
name string
return void

SetOrdinal() public method

public SetOrdinal ( int ordinal ) : void
ordinal int
return void

ToString() public method

public ToString ( ) : string
return string