ScriptState.GetSet Method
Gets a VarSet object specified by name.
ScriptState.GetSet(VarSetName String)
Parameters
- VarSetName
Specifies the name of the VarSet object to get.
Return Value
VarSet
Remarks
If the specified VarSet object does not exist, the GetSet method automatically creates and returns a new VarSet object with that name.
Examples
The following example shows how to get the VarSet object using its name.
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
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later