IVsaScriptScope.AddItem Method
Assembly: Microsoft.JScript (in microsoft.jscript.dll)
'Declaration Function AddItem ( _ itemName As String, _ type As VsaItemType _ ) As IVsaItem 'Usage Dim instance As IVsaScriptScope Dim itemName As String Dim type As VsaItemType Dim returnValue As IVsaItem returnValue = instance.AddItem(itemName, type)
IVsaItem AddItem ( String itemName, VsaItemType type )
function AddItem (
itemName : String,
type : VsaItemType
) : IVsaItem
Parameters
- itemName
A string name for the new item. The name must not be in use; otherwise an ItemNameInUseVsaException is thrown.
- type
The VsaItemType Enumeration was fixed and new item types were added. The JScript implementation accepts VSAITEMTYPE2 values and rejects VsaItemType items
In the JScript implementation, the VSA engine must not be closed; otherwise an EngineClosedVsaException is thrown.
In the JScript implementation, the item name must not be already in use; otherwise an ItemNameInUseVsaException is thrown.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.