共用方式為


IVMVirtualServer::AvailableSystemCapacity property

The AvailableSystemCapacity property contains the percentage of currently available system capacity, based on the number of virtual machines currently running and their scheduling parameters.

This property is read-only.

Syntax

HRESULT get_AvailableSystemCapacity(
  [out] VARIANT *availableCapacity
);

VB
VMVirtualServer.AvailableSystemCapacity( _
  ByRef availableCapacity _
)

Property value

The percentage of currently available system capacity, based on the number of virtual machines currently running and their scheduling parameters. The number is returned as a Double value.

This property value is read-only.

Error codes

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

Remarks

In order to start a new virtual machine, its IVMAccountant::ReservedSystemCapacity property cannot exceed this value.

Examples

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

Set objVS = CreateObject("VirtualServer.Application")

Wscript.Echo "Name: " & objVS.Name
Wscript.Echo "Available system capacity: " & objVS.AvailableSystemCapacity

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