Share via


IVMNetworkAdapter::VirtualMachine property

The VirtualMachine property contains the virtual machine associated with this virtual NIC.

This property is read-only.

Syntax

HRESULT get_VirtualMachine(
  [out] IVMVirtualMachine **virtualMachine
);

VB
VMNetworkAdapter.VirtualMachine( _
  ByRef virtualMachine _
)

Property value

The VMVirtualMachine object which is associated with this virtual NIC.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The parameter virtualMachine was NULL.
VM_E_VM_UNKNOWN
The virtual machine cannot be found.
DISP_E_EXCEPTION
An unexpected error has occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMNetworkAdapter

IVMNetwork Properties