IVMVirtualNetwork interface

[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]

Defines a virtual network. IVMVirtualNetwork objects are returned from IVMVirtualPC method FindVirtualNetwork. You can also retrieve an IVMVirtualNetwork object from the IVMVirtualNetworkCollection object returned from the IVMVirtualPC::VirtualNetworks property.

A virtual network consists of a virtual switch, which performs all internal routing, and several connections that are "plugged in" to the virtual switch. These connections can be a real external host connection, an "internal network" or shared networking (NAT).

Members

The IVMVirtualNetwork interface inherits from the IDispatch interface. IVMVirtualNetwork also has these types of members:

Methods

The IVMVirtualNetwork interface has these methods.

Method Description
_ID Retrieves the internal identifier of the virtual network.

Properties

The IVMVirtualNetwork interface has these properties.

Property Access type Description
HostAdapter
Read-only
The name of the adapter to which the virtual network is connected.
MediaType
Read-only
Determines whether the virtual network instance is wireless or not.
Name
Read-only
The unique name of the virtual network instance.
NetworkAdapters
Read-only
An enumerable collection of NICs attached to the virtual network.

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
VPCCOMInterfaces.h
IID
IID_IVMVirtualNetwork is defined as 431cb7a1-2469-4563-b94e-38b987adca63