Compartir a través de


IVMVirtualServer::DefaultVNConfigurationPath property

The DefaultVNConfigurationPath property contains the default directory searched by the web application to create lists of available virtual network configuration files.

This property is read-only.

Syntax

HRESULT get_DefaultVNConfigurationPath(
  [out] BSTR *configurationPath
);

VB
VMVirtualServer.DefaultVNConfigurationPath( _
  ByRef configurationPath _
)

Property value

The default virtual network configurations directory path. In the path string, a backslash () may appear immediately before the terminating null character.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The configurationPath parameter is NULL.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

By default, this property value is set to the "%ALLUSERSPROFILE%\Documents\Shared Virtual Networks\" directory.

Examples

The following example displays the DefaultVNConfigurationPath property value of the VMVirtualServer object.

Set objVS = CreateObject("VirtualServer.Application")

Wscript.Echo "Name: " & objVS.Name
Wscript.Echo "Default VN configuration path: " & _
             objVS.DefaultVNConfigurationPath

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