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
DomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definitionId
SectionDefinitionIDThe SectionDefinitionID.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instance
ordefinitionId
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
DomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definition
SectionDefinitionThe SectionDefinition.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instance
ordefinition
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
DomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definitionName
stringThe name of the section definition.
cache
DomCacheThe DomCache.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instance
orcache
is null.- ArgumentException
definitionName
is null or whitespace.- ArgumentException
Could not find section definition with the specified
definitionName
.