Method SetFieldValue
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
SetFieldValue<T>(Section, string, T, DomCache)
public static void SetFieldValue<T>(this Section section, string name, T value, DomCache cache)
Parameters
section
SectionThe Section.
name
stringThe name of the field.
value
TThe new value for the field.
cache
DomCacheThe DomCache.
Type Parameters
T
The type of the field value.
Exceptions
- ArgumentNullException
section
,cache
, orname
is null.
SetFieldValue<T>(Section, FieldDescriptorID, T)
Sets the value of a field within the Section by its FieldDescriptorID.
public static void SetFieldValue<T>(this Section section, FieldDescriptorID fieldDescriptorId, T value)
Parameters
section
SectionThe Section.
fieldDescriptorId
FieldDescriptorIDThe FieldDescriptorID.
value
TThe new value for the field.
Type Parameters
T
The type of the field value.
Exceptions
- ArgumentNullException
section
orfieldDescriptorId
is null.