Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AttachToVirtualNetwork method attaches the virtual NIC to the specified virtual network.
Syntax
HRESULT AttachToVirtualNetwork(
[in] IVMVirtualNetwork *virtualNetwork
);
Parameters
-
virtualNetwork [in]
-
The virtual network to which this virtual NIC will be connected.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The operation was successful. |
|
The virtualNetwork parameter is NULL. |
|
The virtualNetwork parameter does not contain a valid virtual network. |
|
Access was denied to the requested virtual network. |
|
The virtual machine is invalid or no longer exists. |
|
The virtualNetwork parameter is not an existing virtual network. |
|
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 |
|