C# Class System.Data.DataRow

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
BeginEdit void
BeginEditInternal bool
CancelEdit void
CheckColumn void
CheckForLoops void
CheckInTable void
ClearError void
CopyValuesIntoStore int
EndEdit void
GetColumnValues object[]
GetColumnValues object[]
GetCurrentRecordNo int
GetDataColumn DataColumn
GetDefaultRecord int
GetDefaultRowVersion DataRowVersion
GetKeyValues object[]
GetKeyValues object[]
GetNestedParentCount int
GetNestedParentRow DataRow
GetOriginalRecordNo int
GetProposedRecordNo int
GetRecordFromVersion int
GetRecordState DataViewRowState
HasChanges bool
HasKeyChanged bool
HasKeyChanged bool
HaveValuesChanged bool
HaveValuesChanged bool
ResetLastChangedColumn void
RowErrorChanged void
SetKeyValues void
SetNestedParentRow void
SetParentRowToDBNull void
SetParentRowToDBNull void
VerifyValueFromStorage void

Méthodes publiques

Méthode Description
AcceptChanges ( ) : void

Commits all the changes made to this row since the last time was called.

ClearErrors ( ) : void

Clears the errors for the row, including the and errors set with

Delete ( ) : void

Deletes the row.

GetChildRows ( DataRelation relation ) : System.Data.DataRow[]

Gets the child rows of this using the specified .

GetChildRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]

Gets the child rows of this using the specified and the specified

GetChildRows ( string relationName ) : System.Data.DataRow[]
GetChildRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
GetColumnError ( DataColumn column ) : string

Gets the error description of the specified .

GetColumnError ( int columnIndex ) : string

Gets the error description for the column specified by index.

GetColumnError ( string columnName ) : string

Gets the error description for a column, specified by name.

GetColumnsInError ( ) : System.Data.DataColumn[]

Gets an array of columns that have errors.

GetParentRow ( DataRelation relation ) : DataRow

Gets the parent row of this using the specified .

GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow

Gets the parent row of this using the specified and .

GetParentRow ( string relationName ) : DataRow
GetParentRow ( string relationName, DataRowVersion version ) : DataRow
GetParentRows ( DataRelation relation ) : System.Data.DataRow[]

Gets the parent rows of this using the specified .

GetParentRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]

Gets the parent rows of this using the specified .

GetParentRows ( string relationName ) : System.Data.DataRow[]
GetParentRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
HasVersion ( DataRowVersion version ) : bool

Gets a value indicating whether a specified version exists.

IsNull ( DataColumn column ) : bool

Gets a value indicating whether the specified contains a null value.

IsNull ( DataColumn column, DataRowVersion version ) : bool
IsNull ( int columnIndex ) : bool

Gets a value indicating whether the column at the specified index contains a null value.

IsNull ( string columnName ) : bool

Gets a value indicating whether the named column contains a null value.

RejectChanges ( ) : void

Rejects all changes made to the row since was last called.

SetAdded ( ) : void
SetColumnError ( DataColumn column, string error ) : void

Sets the error description for a column specified as a .

SetColumnError ( int columnIndex, string error ) : void

Sets the error description for a column specified by index.

SetColumnError ( string columnName, string error ) : void

Sets the error description for a column specified by name.

SetModified ( ) : void
SetParentRow ( DataRow parentRow ) : void
SetParentRow ( DataRow parentRow, DataRelation relation ) : void

Sets current row's parent row with specified relation.

this ( DataColumn column ) : object

Gets or sets the data stored in the specified .

this ( DataColumn column, DataRowVersion version ) : object

Gets the specified version of data stored in the specified .

this ( int columnIndex ) : object

Gets or sets the data stored in the column specified by index.

this ( int columnIndex, DataRowVersion version ) : object

Gets the data stored in the column, specified by index and version of the data to retrieve.

this ( string columnName ) : object

Gets or sets the data stored in the column specified by name.

this ( string columnName, DataRowVersion version ) : object

Gets the specified version of data stored in the named column.

Méthodes protégées

Méthode Description
DataRow ( DataRowBuilder builder ) : System.Collections

Initializes a new instance of the DataRow. Constructs a row from the builder. Only for internal usage..

SetNull ( DataColumn column ) : void

Sets the specified column's value to a null value.

Private Methods

Méthode Description
BeginEdit ( ) : void
BeginEditInternal ( ) : bool
CancelEdit ( ) : void
CheckColumn ( DataColumn column ) : void
CheckForLoops ( DataRelation rel ) : void
CheckInTable ( ) : void

Throws a RowNotInTableException if row isn't in table.

ClearError ( DataColumn column ) : void
CopyValuesIntoStore ( ArrayList storeList, ArrayList nullbitList, int storeIndex ) : int
EndEdit ( ) : void
GetColumnValues ( DataColumn columns ) : object[]
GetColumnValues ( DataColumn columns, DataRowVersion version ) : object[]
GetCurrentRecordNo ( ) : int
GetDataColumn ( string columnName ) : DataColumn
GetDefaultRecord ( ) : int
GetDefaultRowVersion ( DataViewRowState viewState ) : DataRowVersion
GetKeyValues ( DataKey key ) : object[]
GetKeyValues ( DataKey key, DataRowVersion version ) : object[]
GetNestedParentCount ( ) : int
GetNestedParentRow ( DataRowVersion version ) : DataRow
GetOriginalRecordNo ( ) : int
GetProposedRecordNo ( ) : int
GetRecordFromVersion ( DataRowVersion version ) : int
GetRecordState ( int record ) : DataViewRowState
HasChanges ( ) : bool
HasKeyChanged ( DataKey key ) : bool
HasKeyChanged ( DataKey key, DataRowVersion version1, DataRowVersion version2 ) : bool
HaveValuesChanged ( DataColumn columns ) : bool
HaveValuesChanged ( DataColumn columns, DataRowVersion version1, DataRowVersion version2 ) : bool
ResetLastChangedColumn ( ) : void
RowErrorChanged ( ) : void
SetKeyValues ( DataKey key, object keyValues ) : void
SetNestedParentRow ( DataRow parentRow, bool setNonNested ) : void
SetParentRowToDBNull ( ) : void
SetParentRowToDBNull ( DataRelation relation ) : void
VerifyValueFromStorage ( DataColumn column, DataRowVersion version, object valueFromStorage ) : void

Method Details

AcceptChanges() public méthode

Commits all the changes made to this row since the last time was called.
public AcceptChanges ( ) : void
Résultat void

ClearErrors() public méthode

Clears the errors for the row, including the and errors set with
public ClearErrors ( ) : void
Résultat void

DataRow() protected méthode

Initializes a new instance of the DataRow. Constructs a row from the builder. Only for internal usage..
protected DataRow ( DataRowBuilder builder ) : System.Collections
builder DataRowBuilder
Résultat System.Collections

Delete() public méthode

Deletes the row.
public Delete ( ) : void
Résultat void

GetChildRows() public méthode

Gets the child rows of this using the specified .
public GetChildRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
Résultat System.Data.DataRow[]

GetChildRows() public méthode

Gets the child rows of this using the specified and the specified
public GetChildRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]
relation DataRelation
version DataRowVersion
Résultat System.Data.DataRow[]

GetChildRows() public méthode

public GetChildRows ( string relationName ) : System.Data.DataRow[]
relationName string
Résultat System.Data.DataRow[]

GetChildRows() public méthode

public GetChildRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
Résultat System.Data.DataRow[]

GetColumnError() public méthode

Gets the error description of the specified .
public GetColumnError ( DataColumn column ) : string
column DataColumn
Résultat string

GetColumnError() public méthode

Gets the error description for the column specified by index.
public GetColumnError ( int columnIndex ) : string
columnIndex int
Résultat string

GetColumnError() public méthode

Gets the error description for a column, specified by name.
public GetColumnError ( string columnName ) : string
columnName string
Résultat string

GetColumnsInError() public méthode

Gets an array of columns that have errors.
public GetColumnsInError ( ) : System.Data.DataColumn[]
Résultat System.Data.DataColumn[]

GetParentRow() public méthode

Gets the parent row of this using the specified .
public GetParentRow ( DataRelation relation ) : DataRow
relation DataRelation
Résultat DataRow

GetParentRow() public méthode

Gets the parent row of this using the specified and .
public GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow
relation DataRelation
version DataRowVersion
Résultat DataRow

GetParentRow() public méthode

public GetParentRow ( string relationName ) : DataRow
relationName string
Résultat DataRow

GetParentRow() public méthode

public GetParentRow ( string relationName, DataRowVersion version ) : DataRow
relationName string
version DataRowVersion
Résultat DataRow

GetParentRows() public méthode

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
Résultat System.Data.DataRow[]

GetParentRows() public méthode

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]
relation DataRelation
version DataRowVersion
Résultat System.Data.DataRow[]

GetParentRows() public méthode

public GetParentRows ( string relationName ) : System.Data.DataRow[]
relationName string
Résultat System.Data.DataRow[]

GetParentRows() public méthode

public GetParentRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
Résultat System.Data.DataRow[]

HasVersion() public méthode

Gets a value indicating whether a specified version exists.
public HasVersion ( DataRowVersion version ) : bool
version DataRowVersion
Résultat bool

IsNull() public méthode

Gets a value indicating whether the specified contains a null value.
public IsNull ( DataColumn column ) : bool
column DataColumn
Résultat bool

IsNull() public méthode

public IsNull ( DataColumn column, DataRowVersion version ) : bool
column DataColumn
version DataRowVersion
Résultat bool

IsNull() public méthode

Gets a value indicating whether the column at the specified index contains a null value.
public IsNull ( int columnIndex ) : bool
columnIndex int
Résultat bool

IsNull() public méthode

Gets a value indicating whether the named column contains a null value.
public IsNull ( string columnName ) : bool
columnName string
Résultat bool

RejectChanges() public méthode

Rejects all changes made to the row since was last called.
public RejectChanges ( ) : void
Résultat void

SetAdded() public méthode

public SetAdded ( ) : void
Résultat void

SetColumnError() public méthode

Sets the error description for a column specified as a .
public SetColumnError ( DataColumn column, string error ) : void
column DataColumn
error string
Résultat void

SetColumnError() public méthode

Sets the error description for a column specified by index.
public SetColumnError ( int columnIndex, string error ) : void
columnIndex int
error string
Résultat void

SetColumnError() public méthode

Sets the error description for a column specified by name.
public SetColumnError ( string columnName, string error ) : void
columnName string
error string
Résultat void

SetModified() public méthode

public SetModified ( ) : void
Résultat void

SetNull() protected méthode

Sets the specified column's value to a null value.
protected SetNull ( DataColumn column ) : void
column DataColumn
Résultat void

SetParentRow() public méthode

public SetParentRow ( DataRow parentRow ) : void
parentRow DataRow
Résultat void

SetParentRow() public méthode

Sets current row's parent row with specified relation.
public SetParentRow ( DataRow parentRow, DataRelation relation ) : void
parentRow DataRow
relation DataRelation
Résultat void

this() public méthode

Gets or sets the data stored in the specified .
public this ( DataColumn column ) : object
column DataColumn
Résultat object

this() public méthode

Gets the specified version of data stored in the specified .
public this ( DataColumn column, DataRowVersion version ) : object
column DataColumn
version DataRowVersion
Résultat object

this() public méthode

Gets or sets the data stored in the column specified by index.
public this ( int columnIndex ) : object
columnIndex int
Résultat object

this() public méthode

Gets the data stored in the column, specified by index and version of the data to retrieve.
public this ( int columnIndex, DataRowVersion version ) : object
columnIndex int
version DataRowVersion
Résultat object

this() public méthode

Gets or sets the data stored in the column specified by name.
public this ( string columnName ) : object
columnName string
Résultat object

this() public méthode

Gets the specified version of data stored in the named column.
public this ( string columnName, DataRowVersion version ) : object
columnName string
version DataRowVersion
Résultat object