Share via


IVMVirtualServer::DeleteVirtualNetwork method

The DeleteVirtualNetwork method deletes a virtual network.

Syntax

HRESULT DeleteVirtualNetwork(
  [in] IVMVirtualNetwork *virtualNetworkName
);

Parameters

virtualNetworkName [in]

Pointer to a IVMVirtualNetwork object representing the virtual network configuration to delete.

Return value

This method can return one of these values.

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
S_FALSE
The specified virtual network could not be found.
E_POINTER
The virtualNetwork parameter was NULL.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

The virtual network's configuration file is deleted by this method.

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

IVMVirtualServer