Method SetFieldValue
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
SetFieldValue<T>(ISectionContainer, string, string, T, DomCache)
Sets the value of a field within a section by name.
public static void SetFieldValue<T>(this ISectionContainer container, string sectionName, string fieldName, T value, DomCache cache)
Parameters
container
ISectionContainerThe ISectionContainer instance.
sectionName
stringThe name of the section.
fieldName
stringThe name of the field.
value
TThe value to set for the field.
cache
DomCacheThe DomCache instance.
Type Parameters
T
The type of the field value.
Exceptions
- ArgumentNullException
Thrown when
container
,cache
, orvalue
is null.- ArgumentException
Thrown when
sectionName
orfieldName
is null or whitespace.