Method GetByID
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
GetByID(DomInstanceCrudHelperComponent, Guid)
Gets a Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance by ID.
public static DomInstance GetByID(this DomInstanceCrudHelperComponent helper, Guid id)
Parameters
helperDomInstanceCrudHelperComponentThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstanceCrudHelperComponent.
idGuidThe ID of the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
Returns
- DomInstance
The Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance with the specified ID, or null if not found.
Exceptions
- ArgumentNullException
helperis null.
GetByID(DomInstanceCrudHelperComponent, Guid, SelectedFields<DomInstance>)
Gets a selected subset of fields of a Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance by ID.
public static PartialObject<DomInstance, DomInstanceId> GetByID(this DomInstanceCrudHelperComponent helper, Guid id, SelectedFields<DomInstance> fields)
Parameters
helperDomInstanceCrudHelperComponentThe Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstanceCrudHelperComponent.
idGuidThe ID of the Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance.
fieldsSelectedFields<DomInstance>The fields to retrieve.
Returns
- PartialObject<DomInstance, DomInstanceId>
The partial Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance with the specified ID, or null if not found.
Exceptions
- ArgumentNullException
helperorfieldsis null.