Skip to content

Row Class

Row containing data for a table.

MethodDescription
BestEffortSetField(field, value)Sets the value of a particular field in the row without validating.
CopyTo(target)Copies this row to the target row.
FieldAsInteger()Gets the field as an integer.
FieldAsNullableInteger()Gets the field as an integer that could be null.
FieldAsString()Gets the field as a string.
GetKey()Get the value used to represent the row in a keyed row collection.
GetPrimaryKey(delimiter)Get the primary key of this row.
GetPrimaryKey(delimiter, nullReplacement)Get the primary key of this row.
IsColumnEmpty(field)Returns true if the specified field is null or an empty string.
IsColumnNull(field)Returns true if the specified field is null.
IsIdentical(row)Tests if the passed in row is identical.
ToString()Returns a string representation of the Row.
PropertyDescription
FieldsGets the fields contained by this row.
ItemGets or sets the value of a particular field in the row.
NumberGets the unique number for the row.
OperationGets or sets the row transform operation.
SourceLineNumbersGets the source file and line number for the row.
TableGets the table this row belongs to.
TableDefinitionGets the table definition for this row.
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Sets the value of a particular field in the row without validating.

public bool BestEffortSetField(
int field,
System.Object value
)
ParameterTypeDescription
fieldintfield index.
valueSystem.ObjectValue of a field in the row.

bool True if successful, false if validation failed.

Copies this row to the target row.

public void CopyTo(
Row target
)
ParameterTypeDescription
targetRowRow to copy data to.

Gets the field as an integer.

public int FieldAsInteger()

int Field’s data as an integer.

Gets the field as an integer that could be null.

public System.Nullable<System.Int32> FieldAsNullableInteger()

System.Nullable<System.Int32> Field’s data as an integer that could be null.

Gets the field as a string.

public string FieldAsString()

string Field’s data as a string.

Get the value used to represent the row in a keyed row collection.

public string GetKey()

string Primary key or row number if no primary key is available.

Get the primary key of this row.

public string GetPrimaryKey(
System.Char delimiter
)
ParameterTypeDescription
delimiterSystem.CharDelimiter character for multiple column primary keys.

string The primary key or null if the row’s table has no primary key columns.

GetPrimaryKey(delimiter, nullReplacement) Method

Section titled “GetPrimaryKey(delimiter, nullReplacement) Method”

Get the primary key of this row.

public string GetPrimaryKey(
System.Char delimiter,
string nullReplacement
)
ParameterTypeDescription
delimiterSystem.CharDelimiter character for multiple column primary keys.
nullReplacementstringString to represent null values in the primary key.

string The primary key or null if the row’s table has no primary key columns.

Returns true if the specified field is null or an empty string.

public bool IsColumnEmpty(
int field
)
ParameterTypeDescription
fieldintIndex of the field to check.

bool true if the specified field is null or an empty string, false otherwise.

Returns true if the specified field is null.

public bool IsColumnNull(
int field
)
ParameterTypeDescription
fieldintIndex of the field to check.

bool true if the specified field is null, false otherwise.

Tests if the passed in row is identical.

public bool IsIdentical(
Row row
)
ParameterTypeDescription
rowRowRow to compare against.

bool True if two rows are identical.

Returns a string representation of the Row.

public string ToString()

string A string representation of the Row.

Gets the fields contained by this row.

public Field[] Fields { get; set; }

Gets or sets the value of a particular field in the row.

public System.Object Item[
int field
] { get; set; }
ParameterTypeDescription
fieldintfield index.

Gets the unique number for the row.

public System.Int64 Number { get; set; }

Gets or sets the row transform operation.

public RowOperation Operation { get; set; }

Gets the source file and line number for the row.

public WixToolset.Data.SourceLineNumber SourceLineNumbers { get; set; }

Gets the table this row belongs to.

public Table Table { get; set; }

Gets the table definition for this row.

public TableDefinition TableDefinition { get; set; }

A Row always has a TableDefinition, even if the Row does not belong to a Table.