API Reference
Class
HyperVInventoryQuery
Builds consolidated read-only Hyper-V inventory from native Hyper-V WMI v2 query surfaces.
Inheritance
- Object
- HyperVInventoryQuery
Methods
public static HyperVInventoryInfo Get(String computerName = null, String[] nameOrIdPatterns = null, Nullable<TimeSpan> timeout = null) #Returns:
HyperVInventoryInfoGets consolidated native Hyper-V inventory for a host.
Parameters
- computerName System.String = null
- Target computer name. Blank or . uses the local computer.
- nameOrIdPatterns System.String[] = null
- Optional wildcard patterns passed to VM, configuration, resource, disk, network adapter, and switch child queries.
- timeout System.Nullable{System.TimeSpan} = null
- Optional WMI query timeout per child query.
Returns
Consolidated Hyper-V inventory.
public static async Task<HyperVInventoryInfo> GetAsync(String computerName = null, String[] nameOrIdPatterns = null, Nullable<TimeSpan> timeout = null, CancellationToken cancellationToken = null) #Returns:
Task<HyperVInventoryInfo>Asynchronously gets consolidated native Hyper-V inventory for a host.
Parameters
- computerName System.String = null
- Target computer name. Blank or . uses the local computer.
- nameOrIdPatterns System.String[] = null
- Optional wildcard patterns passed to VM, configuration, resource, disk, network adapter, and switch child queries.
- timeout System.Nullable{System.TimeSpan} = null
- Optional WMI query timeout per child query.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Consolidated Hyper-V inventory.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object