IJSVsaItems.CreateItem(String, JSVsaItemType, JSVsaItemFlag) Method

Definition

Creates a new instance of one of the IJSVsaItem types, as defined in the JSVsaItemType enumeration.

public:
 Microsoft::JScript::Vsa::IJSVsaItem ^ CreateItem(System::String ^ name, Microsoft::JScript::Vsa::JSVsaItemType itemType, Microsoft::JScript::Vsa::JSVsaItemFlag itemFlag);
public Microsoft.JScript.Vsa.IJSVsaItem CreateItem (string name, Microsoft.JScript.Vsa.JSVsaItemType itemType, Microsoft.JScript.Vsa.JSVsaItemFlag itemFlag);
abstract member CreateItem : string * Microsoft.JScript.Vsa.JSVsaItemType * Microsoft.JScript.Vsa.JSVsaItemFlag -> Microsoft.JScript.Vsa.IJSVsaItem
Public Function CreateItem (name As String, itemType As JSVsaItemType, itemFlag As JSVsaItemFlag) As IJSVsaItem

Parameters

name
String

The name to associate with the new item.

In cases where the item is a reference item type, the name parameter must be exactly the same as the name of the referenced assembly, as set with the AssemblyName property. In JScript, however, if you do not specify an AssemblyName, JScript will use the ItemName as the name of the assembly.

itemType
JSVsaItemType

The type of item created, as defined in the JSVsaItemType enumeration.

itemFlag
JSVsaItemFlag

The optional flag to specify the initial content of a Code item.

Returns

A reference to the IJSVsaItem object created.

Applies to