# IHardDiskAttachment Interface Reference

The IHardDiskAttachment interface represents a hard disk attachment of a virtual machine. More...

List of all members.

## Public Attributes
readonly attribute IHardDisk | hardDisk
| Hard disk object associated with this attachment.
readonly attribute wstring | controller
| Interface bus of this attachment.
readonly attribute long | port
| Port number of this attachment.
readonly attribute long | device
| Device slot number of this attachment.

## Detailed Description

The IHardDiskAttachment interface represents a hard disk attachment of a virtual machine.

Every hard disk attachment specifies a slot of the virtual hard disk controller and a virtual hard disk attached to this slot.

The array of hard disk attachments is returned by IMachine::hardDiskAttachments.

Interface ID:
  `{B1DD04BB-93C0-4AD3-A9CF-82316E595836}`

## Member Data Documentation

readonly attribute IHardDisk IHardDiskAttachment::hardDisk

Hard disk object associated with this attachment.

readonly attribute wstring IHardDiskAttachment::controller

Interface bus of this attachment.

readonly attribute long IHardDiskAttachment::port

Port number of this attachment.

readonly attribute long IHardDiskAttachment::device

Device slot number of this attachment.