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
section
SectionThe Section.
fieldDescriptorID
FieldDescriptorIDThe FieldDescriptorID.
Returns
- T
The value of the field.
Type Parameters
T
The type of the field value.
Exceptions
- ArgumentNullException
section
orfieldDescriptorID
is 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
section
SectionThe Section.
fieldDescriptor
FieldDescriptorThe FieldDescriptor.
Returns
- T
The value of the field.
Type Parameters
T
The type of the field value.
Exceptions
- ArgumentNullException
section
orfieldDescriptor
is 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
T
The type of the field value.
Exceptions
- ArgumentNullException
section
orcache
is null.- ArgumentException
name
is null or whitespace.