IVMAccountant::ReservedSystemCapacity property

The ReservedSystemCapacity property contains the minimum percentage of system capacity assigned to this virtual machine.

This property is read-only.

Syntax

HRESULT get_ReservedSystemCapacity(
  [out] VARIANT *reservedSystemCapacity
);

VB
VMAccountant.ReservedSystemCapacity( _
  ByRef reservedSystemCapacity _
)

Property value

The minimum percentage of system capacity that will always be available to this virtual machine. The minimum value for this parameter is 0, the maximum value depends on the number of host processors. 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
reservedSystemCapacity is NULL.
VM_E_VM_UNKNOWN
Unknown virtual machine.
DISP_E_EXCEPTION
An unexpected error occurred.

Remarks

In order to run a virtual machine, its reserved system capacity cannot exceed the value of IVMVirtualServer::AvailableSystemCapacity.

Examples

The following example prints the ReservedSystemCapacity property information for each virtual machine.

Set objVS = CreateObject("VirtualServer.Application")
set colVMs = objVS.VirtualMachines

For Each objVM in colVMS
    Set colAccountants = objVM.Accountant
        Wscript.Echo "Virtual machine: " & objVM.Name
        Wscript.Echo "Reserved system capacity: " & colAccountants.ReservedSystemCapacity
        Wscript.Echo
Next

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

IVMAccountant