Interface IRecordV2Builder

Builder for free format IRecordV2 values.

Namespace: PushTechnology.ClientInterface.Data.Record
Assembly: Diffusion.Client.dll
Syntax
public interface IRecordV2Builder
Remarks

This type of builder may be used to generate free format IRecordV2 format data which is not constrained by a ISchema.

Such a builder can be created using CreateValueBuilder().

Implemented in Version 6.0.

Methods

AddFields(IReadOnlyList<String>)

Adds one or more field values.

Declaration
IRecordV2Builder AddFields(IReadOnlyList<string> values)
Parameters
Type Name Description
IReadOnlyList<System.String> values

The immutable list of field values.

Returns
Type Description
IRecordV2Builder

The current builder instance.

Remarks

If there is a current record, this adds the fields to the end of the current record.

AddFields(String[])

Adds one or more field values.

Declaration
IRecordV2Builder AddFields(params string[] values)
Parameters
Type Name Description
System.String[] values

The field values.

Returns
Type Description
IRecordV2Builder

The current builder instance.

Remarks

If there is a current record, this adds the fields to the end of the current record.

AddRecord(IReadOnlyList<String>)

Adds a new record comprising the specified field values.

Declaration
IRecordV2Builder AddRecord(IReadOnlyList<string> fields)
Parameters
Type Name Description
IReadOnlyList<System.String> fields

The immutable list of fields within the new record. If no fields are supplied, an empty record will be added.

Returns
Type Description
IRecordV2Builder

The current builder instance.

AddRecord(String[])

Adds a new record comprising the specified field values.

Declaration
IRecordV2Builder AddRecord(params string[] fields)
Parameters
Type Name Description
System.String[] fields

The fields within the new record. If no fields are supplied, an empty record will be added.

Returns
Type Description
IRecordV2Builder

The current builder instance.

Build()

Builds a IRecordV2 object from the current builder state.

Declaration
IRecordV2 Build()
Returns
Type Description
IRecordV2

The new IRecordV2 object.

Clear()

Clears all current values from the builder allowing it to be reused to generate new data.

Declaration
IRecordV2Builder Clear()
Returns
Type Description
IRecordV2Builder

The current builder instance.

Back to top