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
sectionSectionThe Section.
namestringThe name of the field.
valueTThe new value for the field.
cacheDomCacheThe DomCache.
Type Parameters
TThe type of the field value.
Exceptions
- ArgumentNullException
section,cache, ornameis 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
sectionSectionThe Section.
fieldDescriptorIdFieldDescriptorIDThe FieldDescriptorID.
valueTThe new value for the field.
Type Parameters
TThe type of the field value.
Exceptions
- ArgumentNullException
sectionorfieldDescriptorIdis null.