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 |
---|
|
Property value
The delay in seconds.
This property value is read/write.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The autoStartAtLaunchDelay parameter is NULL or is not a valid value. |
|
The configuration is unknown. |
|
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 |
|