Diffusion .NET Client Library
6.1.5
|
The record builder. More...
Inherited by PushTechnology.ClientInterface.Client.Content.RecordBuilder.
Public Member Functions | |
IRecordBuilder | Add (params string[] fields) |
Adds one or more fields to the end of the record. More... | |
IRecordBuilder | Add (ICollection< object > fields) |
Adds one or more fields to the end of the record. More... | |
IRecordBuilder | Add (int index, string field) |
Inserts a field at a specified index within the record, moving subsequent fields along the record. More... | |
IRecordBuilder | Remove (int index) |
Removes a specified field from the record. More... | |
IRecordBuilder | Set (int index, string field) |
Replaces a field at a specified index within the record. More... | |
IRecordBuilder | Reset () |
Resets the builder to its initial state. More... | |
IRecord | Build () |
Builds the record. More... | |
The record builder.
If null is supplied for any field then a zero-length string ("") is written to the record.
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Add | ( | params string[] | fields | ) |
Adds one or more fields to the end of the record.
fields | A list of fields to add. |
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Add | ( | ICollection< object > | fields | ) |
Adds one or more fields to the end of the record.
A collection of any type may be supplied and the ToString() value of each object will be used as the string value.
If any field value is null it will be written as an empty field, i.e. a zero-length string.
fields | The collection of field objects to add. |
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Add | ( | int | index, |
string | field | ||
) |
Inserts a field at a specified index within the record, moving subsequent fields along the record.
index | The index to add a field at. |
field | The field to add. |
IRecord PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Build | ( | ) |
Builds the record.
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Remove | ( | int | index | ) |
Removes a specified field from the record.
index | The index of the field to remove. |
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Reset | ( | ) |
Resets the builder to its initial state.
IRecordBuilder PushTechnology.ClientInterface.Client.Content.IRecordBuilder.Set | ( | int | index, |
string | field | ||
) |
Replaces a field at a specified index within the record.
index | The index of the field to replace. |
field | The new field. |