IVMHardDiskConnection interface
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Defines the connection for a hard disk within the virtual machine. An IVMHardDiskConnection object is returned from the IVMVirtualMachine::AddHardDiskConnection method. You can also retrieve an IVMHardDiskConnection object from the IVMHardDiskConnectionCollection object returned from the IVMVirtualMachine::HardDiskConnections property.
Members
The IVMHardDiskConnection interface inherits from the IDispatch interface. IVMHardDiskConnection also has these types of members:
Methods
The IVMHardDiskConnection interface has these methods.
Method | Description |
---|---|
SetBusLocation | Sets the bus location to which this hard disk is attached. |
Properties
The IVMHardDiskConnection interface has these properties.
Property | Access type | Description |
---|---|---|
BusNumber |
Read-only |
The bus number to which the drive image is attached. |
DeviceNumber |
Read-only |
The device number to which the drive image is attached. |
HardDisk |
Read-only |
A hard disk object corresponding to this connection. |
UndoHardDisk |
Read-only |
A hard disk object corresponding to this connection's undo disk image. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
End of client support |
Windows 7 |
Product |
Windows Virtual PC |
Header |
|
IID |
IID_IVMHardDiskconnection is defined as aefa36a5-463a-46ae-9e6c-a1fb4e12e671 |