IVsaItems.CreateItem Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Function CreateItem ( _
name As String, _
itemType As VsaItemType, _
itemFlag As VsaItemFlag _
) As IVsaItem
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
IVsaItem CreateItem(
string name,
VsaItemType itemType,
VsaItemFlag itemFlag
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
IVsaItem^ CreateItem(
String^ name,
VsaItemType itemType,
VsaItemFlag itemFlag
)
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract CreateItem :
name:string *
itemType:VsaItemType *
itemFlag:VsaItemFlag -> IVsaItem
function CreateItem(
name : String,
itemType : VsaItemType,
itemFlag : VsaItemFlag
) : IVsaItem
Parameters
name
Type: System.StringThe 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.VsaItemTypeThe type of item created, as defined in the VsaItemType enumeration.
itemFlag
Type: Microsoft.Vsa.VsaItemFlagThe 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.