HyperVVmDataStoreReference5.Builder
Builder for HyperVVmDataStoreReference5.
public sealed class HyperVVmDataStoreReference5.Builder
1. Constructors
1.1. Builder(IKeyedServiceProvider)
Initialises a new instance of the HyperVVmDataStoreReference5.Builder class.
public Builder(IKeyedServiceProvider keyedServiceProvider)
| Name | Type | Description |
|---|---|---|
keyedServiceProvider |
IKeyedServiceProvider |
Service provider. |
2. Methods
2.1. Build()
Build the reference.
public HyperVVmDataStoreReference5 Build()
Returns: HyperVVmDataStoreReference5 — The reference.
2.2. WithBootImages(IFileOperator)
Set where boot images live on this host.
public HyperVVmDataStoreReference5.Builder WithBootImages(IFileOperator bootImages)
| Name | Type | Description |
|---|---|---|
bootImages |
IFileOperator |
Operator rooted at the host boot image directory. |
Returns: HyperVVmDataStoreReference5.Builder — This builder.
2.3. WithDataStoreName(IDataStoreKey)
Set the data store key.
public HyperVVmDataStoreReference5.Builder WithDataStoreName(IDataStoreKey dataStoreName)
| Name | Type | Description |
|---|---|---|
dataStoreName |
IDataStoreKey |
Key, e.g. a |
Returns: HyperVVmDataStoreReference5.Builder — This builder.
2.4. WithLocalHyperV()
Use the default Hyper-V WMI namespace on the local host.
public HyperVVmDataStoreReference5.Builder WithLocalHyperV()
Returns: HyperVVmDataStoreReference5.Builder — This builder.
2.5. WithLogger(ILogger)
Set the logger a per-record commit failure is written to.
public HyperVVmDataStoreReference5.Builder WithLogger(ILogger logger)
| Name | Type | Description |
|---|---|---|
logger |
ILogger |
Logger. |
Returns: HyperVVmDataStoreReference5.Builder — This builder.
2.6. WithManagementScope(ManagementScope)
Set the live management scope. THIS is the whole provider wiring.
public HyperVVmDataStoreReference5.Builder WithManagementScope(ManagementScope scope)
| Name | Type | Description |
|---|---|---|
scope |
ManagementScope |
Already connected management scope. |
Returns: HyperVVmDataStoreReference5.Builder — This builder.
2.7. WithManagementScope(WmiNamespace)
Name the WMI namespace and let the builder open the scope itself.
public HyperVVmDataStoreReference5.Builder WithManagementScope(WmiNamespace wmiNamespace)
| Name | Type | Description |
|---|---|---|
wmiNamespace |
WmiNamespace |
WMI namespace, normally |
Returns: HyperVVmDataStoreReference5.Builder — This builder.