Partager via


IVMNetworkAdapter::VirtualNetwork property

The VirtualNetwork property contains the virtual network to which the virtual NIC is attached.

This property is read-only.

Syntax

HRESULT get_VirtualNetwork(
  [out] IVMVirtualNetwork **virtualNetwork
);

VB
VMNetworkAdapter.VirtualNetwork( _
  ByRef virtualNetwork _
)

Property value

The VMVirtualNetwork 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 virtualNetwork was NULL.
S_FALSE
This network interface is unplugged and is not connected to a virtual network.
VM_E_INVALID_VIRTUAL_NETWORK_ID
This interface is connected to a virtual network with an invalid ID.
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