Table of Contents

Method SetFieldValue

Namespace
Skyline.DataMiner.Utils.DOM.Extensions
Assembly
Skyline.DataMiner.Utils.DOM.dll

SetFieldValue<T>(Section, string, T, DomCache)

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

public static void SetFieldValue<T>(this Section section, string name, T value, DomCache cache)

Parameters

section Section

The Section.

name string

The name of the field.

value T

The new value for the field.

cache DomCache

The DomCache.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

section, cache, or name 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 Section

The Section.

fieldDescriptorId FieldDescriptorID

The FieldDescriptorID.

value T

The new value for the field.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

section or fieldDescriptorId is null.