Share via


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)

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.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.

Return Value

Type: Microsoft.Vsa.IVsaItem
Returns a reference to the IVsaItem object created.

See Also

Reference

IVsaItems Interface

Microsoft.Vsa Namespace