Diffusion .NET Client Library
6.1.5
|
A record is an immutable collection of string fields and may be used when reading or writing record-based content. More...
Public Member Functions | |
string | Get (int index) |
Returns a specific field value within the record. More... | |
IStructuredReader | CreateNewReader (IMRecord metadata) |
Returns a structured reader which may be used to read the record using the supplied metadata. More... | |
IStructuredReader | CreateNewReader (IMRecord metadata, string emptyFieldValue) |
Returns a structured reader which may be used to read the record using the supplied metadata. More... | |
Properties | |
ReadOnlyCollection< string > | Fields [get] |
Returns the values of all field occurrences within the record. More... | |
int | Size [get] |
Returns the size of the record in terms of the number of fields defined within it. More... | |
A record is an immutable collection of string fields and may be used when reading or writing record-based content.
Content that has been written with record delimiters may be read as IRecords or content that uses only field delimiters can be interpreted as a single record, using an IRecordContentReader.
IRecord metadata can be used for direct field access within a record. Metadata used for records is constrained in the following ways:
The fields within a free-format record are simply positional with no concept of field name or repeating fields. A free-format record can be thought of as having a single optional repeating field with no name.
Records may be built using an IContentBuilder or with metadata using an IStructuredBuilder.
IStructuredReader PushTechnology.ClientInterface.Client.Content.IRecord.CreateNewReader | ( | IMRecord | metadata | ) |
Returns a structured reader which may be used to read the record using the supplied metadata.
This will allow for empty field values of "" in the record. If any other empty field value is expected, use CreateNewReader(IMRecord,string) instead.
metadata |
IStructuredReader PushTechnology.ClientInterface.Client.Content.IRecord.CreateNewReader | ( | IMRecord | metadata, |
string | emptyFieldValue | ||
) |
Returns a structured reader which may be used to read the record using the supplied metadata.
metadata | The metadata. |
emptyFieldValue | Specifies the string that is permitted as an empty field value within the record. |
string PushTechnology.ClientInterface.Client.Content.IRecord.Get | ( | int | index | ) |
Returns a specific field value within the record.
index | The index of the field to return the value for (zero-based). |
|
get |
Returns the values of all field occurrences within the record.
|
get |
Returns the size of the record in terms of the number of fields defined within it.