共用方式為


IVMVirtualServer::VMRCIdleConnectionTimeoutEnabled property

The VMRCIdleConnectionTimeoutEnabled property indicates whether idle VMRC connections are automatically disconnected.

This property is read/write.

Syntax

HRESULT put_VMRCIdleConnectionTimeoutEnabled(
  [in]  VARIANT_BOOL shouldEnable
);

HRESULT get_VMRCIdleConnectionTimeoutEnabled(
  [out] VARIANT_BOOL *isEnabled
);

VB
VMVirtualServer.VMRCIdleConnectionTimeoutEnabled( _
  ByRef isEnabled, _
  ByVal shouldEnable _
)

Property value

Contains vbTrue if the VMRC server disconnects idle connections.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

The VMRC connection idle timeout is specified in seconds.

Examples

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

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

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

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