Click or drag to resize

DataSpecsCustomKeyBuilderAdd Method

Adds a unique key and the DataSpec to be associated with it.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DataSpecsCustomKeyBuilder Add(
	string key,
	DataSpec dataSpec
)

Parameters

key  String
A string to be used as the key for dataSpec in the XML request and response. Cannot be null, cannot be empty, cannot have more than 60 characters, and cannot contain characters outside of [-_.a-zA-Z0-9]. (Note that we might expand this set of allowed characters at some point. Please let us know if you'd like us to.)
dataSpec  DataSpec
The non-null DataSpec to be added and associated with key.

Return Value

DataSpecsCustomKeyBuilder
this, for method chaining.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey or dataSpec is null.
FormatExceptionkey does not match the required specification.
ArgumentExceptionA DataSpec has already been added with key.
See Also