Table of Contents

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 Section

The Section.

fieldDescriptorID FieldDescriptorID

The FieldDescriptorID.

Returns

T

The value of the field.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

section or fieldDescriptorID 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 Section

The Section.

fieldDescriptor FieldDescriptor

The FieldDescriptor.

Returns

T

The value of the field.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

section or fieldDescriptor is null.

GetFieldValue<T>(Section, string, DomCache)

Gets the value of a field within the Section by field name and DomCache.

public static T GetFieldValue<T>(this Section section, string name, DomCache cache)

Parameters

section Section

The Section.

name string

The name of the field.

cache DomCache

The DomCache.

Returns

T

The value of the field.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

section or cache is null.

ArgumentException

name is null or whitespace.