This topic has not yet been rated - Rate this topic

IVsaItems.CreateItem Method

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

Namespace:  Microsoft.Vsa
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.

Return Value

Type: Microsoft.Vsa.IVsaItem
Returns a reference to the IVsaItem object created.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement