HyperVVmDataStoreReference5
A Hyper-V management scope as a V5 data store reference. One scope = one data store.
public sealed class HyperVVmDataStoreReference5 :
VmDataStoreReferenceBase<HyperVVmDataStoreReference5>
1. Constructors
1.1. HyperVVmDataStoreReference5(VmConnectionStringBuilder, IKeyedServiceProvider, ManagementScope, IFileOperator)
Initialises a new instance of the HyperVVmDataStoreReference5 class.
public HyperVVmDataStoreReference5(VmConnectionStringBuilder connectionStringBuilder, IKeyedServiceProvider keyedServiceProvider, ManagementScope scope, IFileOperator bootImages)
| Name | Type | Description |
|---|---|---|
connectionStringBuilder |
VmConnectionStringBuilder |
Connection string carrying the store key. |
keyedServiceProvider |
IKeyedServiceProvider |
Service provider. |
scope |
ManagementScope |
Live management scope. |
bootImages |
IFileOperator |
Operator rooted at the host boot image directory. |
2. Properties
2.1. Operations
Gets the environment operations seam of this reference.
protected override IVirtualMachineOperations Operations { get; }
3. Methods
3.1. ConnectLocalScope(WmiNamespace)
Open a CONNECTED management scope on the local Hyper-V host.
public static ManagementScope ConnectLocalScope(WmiNamespace wmiNamespace)
| Name | Type | Description |
|---|---|---|
wmiNamespace |
WmiNamespace |
WMI namespace, normally |
Returns: ManagementScope — The connected scope.