IVsaItems.CreateItem Method
Visual Studio 2010
Creates a new instance of one of the IVsaItem types, as defined in the VsaItemType enumeration.
Assembly: Microsoft.Vsa (in Microsoft.Vsa.dll)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")] IVsaItem CreateItem( string name, VsaItemType itemType, VsaItemFlag itemFlag )
Parameters
- name
- Type: System.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
- Type: Microsoft.Vsa.VsaItemType
The type of item created, as defined in the VsaItemType enumeration.
- itemFlag
- Type: Microsoft.Vsa.VsaItemFlag
The optional flag to specify the initial content of a Code item.