Table of Contents

Method GetFieldDescriptorByName

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

GetFieldDescriptorByName(SectionDefinition, string)

Gets a FieldDescriptor by name within the specified SectionDefinition.

public static FieldDescriptor GetFieldDescriptorByName(this SectionDefinition definition, string name)

Parameters

definition SectionDefinition

The SectionDefinition.

name string

The name of the FieldDescriptor.

Returns

FieldDescriptor

The FieldDescriptor with the specified name.

Exceptions

ArgumentNullException

definition is null.

ArgumentException

name is null or whitespace, or the field descriptor doesn't exist in the definition.