Skip to content

Field Class

Field containing data for a column in a row.

MethodDescription
AsInteger()Gets the field as an integer.
AsNullableInteger()Gets the field as an integer that could be null.
AsString()Gets the field as a string.
BestEffortSet(value)Sets the value of a particular field in the row without validating.
Create(columnDefinition)Instantiate a new Field object of the correct type.
IsIdentical(field)Determine if this field is identical to another field.
ToString()Overrides the built in object implementation to return the field’s data as a string.
PropertyDescription
ColumnGets or sets the column definition for this field.
DataGets or sets the data for this field.
ModifiedGets or sets whether this field is modified.
PreviousDataGets or sets the previous data.
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Gets the field as an integer.

public int AsInteger()

int Field’s data as an integer.

Gets the field as an integer that could be null.

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

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

Gets the field as a string.

public string AsString()

string Field’s data as a string.

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

public bool BestEffortSet(
System.Object value
)
ParameterTypeDescription
valueSystem.ObjectValue of a field in the row.

bool True if successful, false if validation failed.

Instantiate a new Field object of the correct type.

public static Field Create(
ColumnDefinition columnDefinition
)
ParameterTypeDescription
columnDefinitionColumnDefinitionThe column definition for the field.

Field The new Field object.

Determine if this field is identical to another field.

public bool IsIdentical(
Field field
)
ParameterTypeDescription
fieldFieldThe other field to compare to.

bool true if they are equal; false otherwise.

Overrides the built in object implementation to return the field’s data as a string.

public string ToString()

string Field’s data as a string.

Gets or sets the column definition for this field.

public ColumnDefinition Column { get; set; }

Gets or sets the data for this field.

public System.Object Data { get; set; }

Gets or sets whether this field is modified.

public bool Modified { get; set; }

Gets or sets the previous data.

public string PreviousData { get; set; }