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
instanceDomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definitionIdSectionDefinitionIDThe SectionDefinitionID.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instanceordefinitionIdis 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
instanceDomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definitionSectionDefinitionThe SectionDefinition.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instanceordefinitionis 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
instanceDomInstanceThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
definitionNamestringThe name of the section definition.
cacheDomCacheThe DomCache.
Returns
- IEnumerable<Section>
An IEnumerable<T> of Section objects.
Exceptions
- ArgumentNullException
instanceorcacheis null.- ArgumentException
definitionNameis null or whitespace.- ArgumentException
Could not find section definition with the specified
definitionName.