Partager via


IVMVirtualServer::UnregisterVirtualNetwork method

The UnregisterVirtualNetwork method unregisters a virtual network configuration without deleting the configuration file.

Syntax

HRESULT UnregisterVirtualNetwork(
  [in] IVMVirtualNetwork *virtualNetwork
);

Parameters

virtualNetwork [in]

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

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 configuration 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 not 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