Click or drag to resize

DataSpecsCustomKeyBuilder Class

For advanced use, this provides a way to create a DataSpecs object with custom keys (as described in the DataSpecs class remarks).
Inheritance Hierarchy
SystemObject
  DegreeDays.Api.DataDataSpecsCustomKeyBuilder

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class CustomKeyBuilder

The DataSpecsCustomKeyBuilder type exposes the following members.

Constructors
 NameDescription
Public methodDataSpecsCustomKeyBuilder Constructs an empty DataSpecs.CustomKeyBuilder.
Top
Methods
 NameDescription
Public methodAdd Adds a unique key and the DataSpec to be associated with it.
Public methodBuild Creates a DataSpecs object with the configuration that is currently held by this Builder.
Top
Remarks

To use:

  • Create a DataSpecs.CustomKeyBuilder object.
  • Add(String, DataSpec) one or more DataSpec objects (each with a unique string key).
  • Build a DataSpecs object containing the key-DataSpec mappings that you've added.
Thread Safety
Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.
See Also