Compartilhar via


IVMVirtualServer::VMRCAdminPortNumber property

The VMRCAdminPortNumber property contains the VMRC administration port number.

This property is read/write.

Syntax

HRESULT put_VMRCAdminPortNumber(
  [in]  long vmrcAdminPortNumber
);

HRESULT get_VMRCAdminPortNumber(
  [out] long *vmrcAdminPortNumber
);

VB
VMVirtualServer.VMRCAdminPortNumber( _
  ByRef vmrcAdminPortNumber, _
  ByVal vmrcAdminPortNumber _
)

Property value

The TCP/IP port number for VMRC administration. The value must be within the range of 1 and 65535.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The vmrcAdminPortNumber parameter is NULL.
E_INVALIDARG
The vmrcAdminPortNumber parameter is out of range.
DISP_E_EXCEPTION
An unexpected error occurred.

Examples

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

Set objVS = CreateObject("VirtualServer.Application")
Wscript.Echo "Name: " & objVS.Name

Wscript.Echo "VMRC admin port number: " & objVS.VMRCAdminPortNumber

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