Method GetFieldValue
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
GetFieldValue<T>(Section, FieldDescriptorID)
Gets the value of a field within the Section by its FieldDescriptorID.
public static T GetFieldValue<T>(this Section section, FieldDescriptorID fieldDescriptorID)
Parameters
sectionSectionThe Section.
fieldDescriptorIDFieldDescriptorIDThe FieldDescriptorID.
Returns
- T
The value of the field.
Type Parameters
TThe type of the field value.
Exceptions
- ArgumentNullException
sectionorfieldDescriptorIDis null.
GetFieldValue<T>(Section, FieldDescriptor)
Gets the value of a field within the Section by its FieldDescriptor.
public static T GetFieldValue<T>(this Section section, FieldDescriptor fieldDescriptor)
Parameters
sectionSectionThe Section.
fieldDescriptorFieldDescriptorThe FieldDescriptor.
Returns
- T
The value of the field.
Type Parameters
TThe type of the field value.
Exceptions
- ArgumentNullException
sectionorfieldDescriptoris null.
GetFieldValue<T>(Section, string, DomCache)
public static T GetFieldValue<T>(this Section section, string name, DomCache cache)
Parameters
Returns
- T
The value of the field.
Type Parameters
TThe type of the field value.
Exceptions
- ArgumentNullException
sectionorcacheis null.- ArgumentException
nameis null or whitespace.