Method GetByName
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
GetByName(DomBehaviorDefinitionCrudHelperComponent, string)
Gets a Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomBehaviorDefinition by its name.
public static DomBehaviorDefinition GetByName(this DomBehaviorDefinitionCrudHelperComponent helper, string name)
Parameters
helperDomBehaviorDefinitionCrudHelperComponentThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.CrudHelperComponents.DomBehaviorDefinitionCrudHelperComponent instance.
namestringThe name of the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomBehaviorDefinition to retrieve.
Returns
- DomBehaviorDefinition
The Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomBehaviorDefinition with the specified name, or null if not found.
Exceptions
- ArgumentNullException
Thrown when
helperis null.- ArgumentException
Thrown when
nameis null or whitespace.