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
definitionSectionDefinitionThe SectionDefinition.
namestringThe name of the FieldDescriptor.
Returns
- FieldDescriptor
The FieldDescriptor with the specified name.
Exceptions
- ArgumentNullException
definitionis null.- ArgumentException
nameis null or whitespace, or the field descriptor doesn't exist in the definition.