Table of Contents

Method SetFieldValue

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

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

Sets the value of a field within a section by name.

public static void SetFieldValue<T>(this ISectionContainer container, string sectionName, string fieldName, T value, DomCache cache)

Parameters

container ISectionContainer

The ISectionContainer instance.

sectionName string

The name of the section.

fieldName string

The name of the field.

value T

The value to set for the field.

cache DomCache

The DomCache instance.

Type Parameters

T

The type of the field value.

Exceptions

ArgumentNullException

Thrown when container, cache, or value is null.

ArgumentException

Thrown when sectionName or fieldName is null or whitespace.