Table of Contents

Method GetFieldValue

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

GetFieldValue<T>(ISectionContainer, SectionDefinition, FieldDescriptor)

Retrieves the field value of the specified field in the specified section in the specified container.

public static ValueWrapper<T> GetFieldValue<T>(this ISectionContainer container, SectionDefinition sectionDefinition, FieldDescriptor fieldDescriptor)

Parameters

container ISectionContainer

The section container.

sectionDefinition SectionDefinition

The section definition.

fieldDescriptor FieldDescriptor

The field descriptor.

Returns

ValueWrapper<T>

The value or null if the field was not found.

Type Parameters

T

The type to use for the returned ValueWrapper<T> instance.

Remarks

Returns the value of the first Section for the given sectionDefinition.

Exceptions

ArgumentNullException

container, sectionDefinition or fieldDescriptor is null.