Share via


IVMVirtualMachine::AutoStartAtLaunchDelay property

The AutoStartAtLaunchDelay property contains the delay in seconds to use when this virtual machine is started up automatically when Virtual Server is launched.

This property is read/write.

Syntax

HRESULT put_AutoStartAtLaunchDelay(
  [in]  long autoStartAtLaunchDelay
);

HRESULT get_AutoStartAtLaunchDelay(
  [out] long *autoStartAtLaunchDelay
);

VB
VMVirtualMachine.AutoStartAtLaunchDelay( _
  ByRef autoStartAtLaunchDelay, _
  ByVal autoStartAtLaunchDelay _
)

Property value

The delay in seconds.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The autoStartAtLaunchDelay parameter is NULL or is not a valid value.
VM_E_VM_UNKNOWN
The configuration is unknown.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

By default, the value of this property is 0 and there is no delay.

Examples

The following example displays the AutoStartAtLaunchDelay property value of a IVMVirtualMachine object.

Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("Windows Server 2003")

Wscript.Echo "VM Name: " & objVM.Name
WScript.Echo "Autostart at launch delay: " & objVM.AutoStartAtLaunchDelay

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

IVMVirtualMachine