Microsoft Operations Manager |
The GetSetmethod gets a VarSetobject specified by name.
[VBScript] ScriptState.GetSet(VarSetName
String)
VarSet
If the specified VarSetobject does not exist, the GetSetmethod automatically creates and returns a new VarSetobject with that name.
The following example shows how to get the VarSetobject using its name.
[VBScript]
Function GetSavedVarSet(strVarSetName)
Dim objScriptState
Dim objVarSet
Set objScriptState = ScriptContext.GetScriptState()
Set objVarSet = objScriptState.GetSet(strVarSetName)
Set objScriptState = Nothing
Set GetSavedVarSet = objVarSet
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.