Table of Contents

Method AddOrUpdateFieldValue

Namespace
Skyline.DataMiner.Net.Sections
Assembly
SLNetTypes.dll

AddOrUpdateFieldValue<T>(ISectionContainer, SectionDefinition, FieldDescriptor, T)

Adds or updates the specified field of the specified section in the specified container to the specified value.

public static void AddOrUpdateFieldValue<T>(this ISectionContainer container, SectionDefinition sectionDefinition, FieldDescriptor fieldDescriptor, T value)

Parameters

container ISectionContainer

The section container.

sectionDefinition SectionDefinition

The section definition.

fieldDescriptor FieldDescriptor

The field descriptor.

value T

The value.

Type Parameters

T

The type of the value.

Remarks

The first Section found for the given sectionDefinition gets value as its value for fieldDescriptor. If no Section is found, a new one is created and added.

Exceptions

ArgumentNullException

container, sectionDefinition or fieldDescriptor is null.