Table of Contents

Method GetSectionsWithDefinition

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

GetSectionsWithDefinition(DomInstance, SectionDefinitionID)

Gets sections with the specified SectionDefinitionID associated with the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

public static IEnumerable<Section> GetSectionsWithDefinition(this DomInstance instance, SectionDefinitionID definitionId)

Parameters

instance DomInstance

The Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

definitionId SectionDefinitionID

The SectionDefinitionID.

Returns

IEnumerable<Section>

An IEnumerable<T> of Section objects.

Exceptions

ArgumentNullException

instance or definitionId is null.

GetSectionsWithDefinition(DomInstance, SectionDefinition)

Gets sections with the specified SectionDefinition associated with the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

public static IEnumerable<Section> GetSectionsWithDefinition(this DomInstance instance, SectionDefinition definition)

Parameters

instance DomInstance

The Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

definition SectionDefinition

The SectionDefinition.

Returns

IEnumerable<Section>

An IEnumerable<T> of Section objects.

Exceptions

ArgumentNullException

instance or definition is null.

GetSectionsWithDefinition(DomInstance, string, DomCache)

Gets sections with the specified definitionName associated with the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

public static IEnumerable<Section> GetSectionsWithDefinition(this DomInstance instance, string definitionName, DomCache cache)

Parameters

instance DomInstance

The Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.

definitionName string

The name of the section definition.

cache DomCache

The DomCache.

Returns

IEnumerable<Section>

An IEnumerable<T> of Section objects.

Exceptions

ArgumentNullException

instance or cache is null.

ArgumentException

definitionName is null or whitespace.

ArgumentException

Could not find section definition with the specified definitionName.