IVMVirtualServer::VSScriptsEnabled property
The VSScriptsEnabled property indicates whether scripts attached to Virtual Server events are allowed to run.
This property is read/write.
Syntax
HRESULT put_VSScriptsEnabled(
[in] VARIANT_BOOL shouldEnable
);
HRESULT get_VSScriptsEnabled(
[out] VARIANT_BOOL *isEnabled
);
VB |
---|
|
Property value
Contains vbTrue if scripts attached to Virtual Server events are allowed to run.
This property value is read/write.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The isEnabled parameter is NULL. |
|
An unexpected error has occurred. |
Examples
The following example displays the VSScriptsEnabled property value of the VMVirtualServer object.
Set objVS = CreateObject("VirtualServer.Application")
Wscript.Echo "Name: " & objVS.Name
Wscript.Echo "Virtual server event scripts enabled: " & objVS.VSScriptsEnabled
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|