VsaItems.CreateItem 方法
定义
重载
| CreateItem(String, JSVsaItemType, JSVsaItemFlag) |
此 API 支持产品基础结构,不能在代码中直接使用。 创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection. |
| CreateItem(String, VsaItemType, VsaItemFlag) |
此 API 支持产品基础结构,不能在代码中直接使用。 创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection. |
CreateItem(String, JSVsaItemType, JSVsaItemFlag)
创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
virtual Microsoft::JScript::Vsa::IJSVsaItem ^ CreateItem(System::String ^ name, Microsoft::JScript::Vsa::JSVsaItemType itemType, Microsoft::JScript::Vsa::JSVsaItemFlag itemFlag);
public Microsoft.JScript.Vsa.IJSVsaItem CreateItem (string name, Microsoft.JScript.Vsa.JSVsaItemType itemType, Microsoft.JScript.Vsa.JSVsaItemFlag itemFlag);
abstract member CreateItem : string * Microsoft.JScript.Vsa.JSVsaItemType * Microsoft.JScript.Vsa.JSVsaItemFlag -> Microsoft.JScript.Vsa.IJSVsaItem
override this.CreateItem : string * Microsoft.JScript.Vsa.JSVsaItemType * Microsoft.JScript.Vsa.JSVsaItemFlag -> Microsoft.JScript.Vsa.IJSVsaItem
Public Function CreateItem (name As String, itemType As JSVsaItemType, itemFlag As JSVsaItemFlag) As IJSVsaItem
参数
- name
- String
新项的名称。The name of the new item.
- itemType
- JSVsaItemType
枚举值之一。One of the enumeration values. 该值将新项的类型指定为 Code、Reference 或 AppGlobal。The value specifies the type of the new item as Code, Reference, or AppGlobal.
- itemFlag
- JSVsaItemFlag
枚举值之一。One of the enumeration values. 该值将 Code 项的初始内容指定为 Class、Module 或 None。The value specifies the initial content of a Code item as Class, Module, or None.
返回
新创建的项。The newly created item.
实现
另请参阅
适用于
CreateItem(String, VsaItemType, VsaItemFlag)
创建一个新项,并将其添加到集合中。Creates a new item and adds it to the collection.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
virtual 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
override this.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
新项的名称。The name of the new item.
- itemType
- VsaItemType
枚举值之一。One of the enumeration values. 该值将新项的类型指定为 VsaItemType、VsaItemType 或 VsaItemType。The value specifies the type of the new item as VsaItemType, VsaItemType, or VsaItemType.
- itemFlag
- VsaItemFlag
枚举值之一。One of the enumeration values. 该值将 VsaItemType 项的初始内容指定为 VsaItemFlag、VsaItemFlag 或 VsaItemFlag。The value specifies the initial content of a VsaItemType item as VsaItemFlag, VsaItemFlag, or VsaItemFlag.
返回
新创建的项。The newly created item.