IVMVirtualServer::GetVirtualNetworkFiles method
The GetVirtualNetworkFiles method returns an array of known virtual network configuration files.
Syntax
HRESULT GetVirtualNetworkFiles(
[in] VARIANT inAdditionalSearchPaths,
[in] VARIANT_BOOL inExcludedRegisteredVNs,
[out] VARIANT *outVirtualNetworkFileList
);
Parameters
-
inAdditionalSearchPaths [in]
-
These paths will be searched along with the paths set in the IVMVirtualServer::SearchPaths and IVMVirtualServer::DefaultVNConfigurationPath properties.
-
inExcludedRegisteredVNs [in]
-
Set to TRUE if registered virtual networks should be excluded from the array return in the outVirtualNetworkFileList parameter.
-
outVirtualNetworkFileList [out]
-
An array of virtual network configuration files found in the specified search paths.
Return value
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 |
---|---|
|
The operation was successful. |
|
The outVirtualNetworkFileList parameter is NULL. |
|
The inAdditionalSearchPaths parameter is not an array of strings. |
|
An unexpected error has occurred. |
Remarks
The search paths used to retrieve the array of configuration files will include those set previously by IVMVirtualServer::SearchPaths and IVMVirtualServer::DefaultVNConfigurationPath in addition to those specified by the inAdditionalSearchPaths parameter.
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|