Table of Contents

Method AddOrUpdateValue

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

AddOrUpdateValue<T>(Section, FieldDescriptor, T)

Adds or updates the value of the specified field of the specified section.

public static void AddOrUpdateValue<T>(this Section section, FieldDescriptor fieldDescriptor, T value)

Parameters

section Section

The section that holds the field.

fieldDescriptor FieldDescriptor

The field descriptor ID of the field to add or update.

value T

The value.

Type Parameters

T

The type of the value.

Remarks

Adds or updates the specified Section with a FieldValue that points to the given fieldDescriptor and contains a ValueWrapper<T> with value value.

Exceptions

ArgumentNullException

section or fieldDescriptor is null.