แก้ไข

แชร์ผ่าน


IVsaItems.CreateItem(String, VsaItemType, VsaItemFlag) Method

Definition

Creates a new instance of one of the IVsaItem types, as defined in the VsaItemType enumeration.

public:
 Microsoft::Vsa::IVsaItem ^ CreateItem(System::String ^ name, Microsoft::Vsa::VsaItemType itemType, Microsoft::Vsa::VsaItemFlag itemFlag);
public Microsoft.Vsa.IVsaItem CreateItem (string name, Microsoft.Vsa.VsaItemType itemType, Microsoft.Vsa.VsaItemFlag itemFlag);
abstract member CreateItem : string * Microsoft.Vsa.VsaItemType * Microsoft.Vsa.VsaItemFlag -> Microsoft.Vsa.IVsaItem
Public Function CreateItem (name As String, itemType As VsaItemType, itemFlag As VsaItemFlag) As IVsaItem

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
VsaItemType

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

itemFlag
VsaItemFlag

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

Returns

The object created.

Applies to