Field Class
Field containing data for a column in a row.
Methods
Method | Description |
---|---|
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. |
Properties
Property | Description |
---|---|
Column | Gets or sets the column definition for this field. |
Data | Gets or sets the data for this field. |
Modified | Gets or sets whether this field is modified. |
PreviousData | Gets or sets the previous data. |
WixToolset.Data.dll
version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
AsInteger() Method
Gets the field as an integer.
Declaration
public int AsInteger()
Return value
int
Field's data as an integer.
AsNullableInteger() Method
Gets the field as an integer that could be null.
Declaration
public System.Nullable<System.Int32> AsNullableInteger()
Return value
System.Nullable<System.Int32>
Field's data as an integer that could be null.
AsString() Method
Gets the field as a string.
Declaration
public string AsString()
Return value
string
Field's data as a string.
BestEffortSet(value) Method
Sets the value of a particular field in the row without validating.
Declaration
public bool BestEffortSet(
System.Object value
)
Parameters
Parameter | Type | Description |
---|---|---|
value | System.Object | Value of a field in the row. |
Return value
bool
True if successful, false if validation failed.
Create(columnDefinition) Method
Instantiate a new Field object of the correct type.
Declaration
public static Field Create(
ColumnDefinition columnDefinition
)
Parameters
Parameter | Type | Description |
---|---|---|
columnDefinition | ColumnDefinition | The column definition for the field. |
Return value
Field
The new Field object.
IsIdentical(field) Method
Determine if this field is identical to another field.
Declaration
public bool IsIdentical(
Field field
)
Parameters
Parameter | Type | Description |
---|---|---|
field | Field | The other field to compare to. |
Return value
bool
true if they are equal; false otherwise.
ToString() Method
Overrides the built in object implementation to return the field's data as a string.
Declaration
public string ToString()
Return value
string
Field's data as a string.
Column Property
Gets or sets the column definition for this field.
Declaration
public ColumnDefinition Column { get; set; }
Data Property
Gets or sets the data for this field.
Declaration
public System.Object Data { get; set; }
Modified Property
Gets or sets whether this field is modified.
Declaration
public bool Modified { get; set; }
PreviousData Property
Gets or sets the previous data.
Declaration
public string PreviousData { get; set; }