Partager via


IVMVirtualServer::VMRCIdleConnectionTimeout property

The VMRCIdleConnectionTimeout property contains the time in seconds after which idle VMRC connections are disconnected.

This property is read/write.

Syntax

HRESULT put_VMRCIdleConnectionTimeout(
  [in]  long idleTimeout
);

HRESULT get_VMRCIdleConnectionTimeout(
  [out] long *idleTimeout
);

VB
VMVirtualServer.VMRCIdleConnectionTimeout( _
  ByRef idleTimeout, _
  ByVal idleTimeout _
)

Property value

The time in seconds after which idle VMRC connections will be disconnected.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The idleTimeout parameter is NULL.
E_INVALIDARG
The idleTimeout parameter is not in the valid range of times.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

The VMRC connection idle timeout is specified in seconds, and must be within the range of 1 second to 24 hours (86400 seconds).

Examples

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

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

Wscript.Echo "VMRC idle connection timeout: " & _
             objVS.VMRCIdleConnectionTimeout

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