IVsaItems.CreateItem(String, VsaItemType, VsaItemFlag) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据枚举中IVsaItem定义,创建其中一种VsaItemType类型的新实例。
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
参数
- name
- String
要与新项关联的名称。 如果项是引用项类型,则 name 参数必须与所引用程序集的名称完全相同,如使用属性设置的那样 AssemblyName 。 但是,在 JScript 中,如果未指定 AssemblyName,JScript 将使用 ItemName 作为程序集的名称。
- itemType
- VsaItemType
在枚举中 VsaItemType 定义的项的类型。
- itemFlag
- VsaItemFlag
用于指定代码项的初始内容的可选标志。
返回
创建的对象。