Click or drag to resize

DataSetsBuilderAdd(DataSpec, DataSetBase) Method

Adds an association between a DataSpec from the request and a data set from the response, without dealing directly with the string keys that are used in the XML.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DataSetsBuilder Add(
	DataSpec dataSpec,
	DataSetBase dataSet
)

Parameters

dataSpec  DataSpec
The non-null DataSpec object that dataSet was generated to satisfy.
dataSet  DataSetBase
The non-null data set that was generated to satisfy dataSpec.

Return Value

DataSetsBuilder
this, for method chaining.
Exceptions
ExceptionCondition
InvalidOperationExceptionThis builder does not have access to the original DataSpecs object.
ArgumentNullExceptiondataSpec or dataSet is null.
ArgumentExceptiondataSpec is not found in the DataSpecs object that this builder holds internally, or if an item corresponding to dataSpec has already been added.
See Also