Share via


IVMVirtualNetwork::Name property

The Name property contains the unique name of this virtual network.

This property is read/write.

Syntax

HRESULT put_Name(
  [in]  BSTR virtualNetworkName
);

HRESULT get_Name(
  [out] BSTR *virtualNetworkName
);

VB
VMVirtualNetwork.Name( _
  ByRef virtualNetworkName, _
  ByVal virtualNetworkName _
)

Property value

The name of the virtual network.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The virtualNetworkName parameter is NULL.
E_INVALIDARG
The virtualNetworkName parameter is an empty string.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

Virtual network names are case-insensitive, for example, "MyNetwork" and "mynetwork" refer to the same virtual network.

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

IVMVirtualNetwork