Microsoft Operations Manager

GetSet Method

The GetSetmethod gets a VarSetobject specified by name.

[VBScript] ScriptState.GetSet(VarSetName
String)

Parameters

VarSetName
Specifies the name of the VarSetobject to get.

Return Value

VarSet

Remarks

If the specified VarSetobject does not exist, the GetSetmethod automatically creates and returns a new VarSetobject with that name.

Examples

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

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

ScriptState Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.