USADriveIdJurisdSubfile.AddOrReplace

AddOrReplace(DataElement)

Adds new DataElement or replaces it if ElementID already exists.

public DataElement AddOrReplace(DataElement node)
ParameterTypeDescription
nodeDataElementDataElement to add

Return Value

Added/replaced data element

See Also


AddOrReplace(string, string)

Adds a new DataElement with the specified identifier and value, or replaces the existing element if an entry with the same ElementID is already present.

public DataElement AddOrReplace(string id, string value)
ParameterTypeDescription
idStringA 3-letter identifier that uniquely specifies the jurisdiction-related data element.
valueStringThe text value assigned to the data element; this value will overwrite the existing one if the element already exists.

Return Value

The DataElement instance that was added to the collection or updated in place.

See Also