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
這個名稱要與新物品相關聯。 若項目為參考項目類型,名稱參數必須與參考組件名稱完全相同,並依屬性 AssemblyName 設定。 然而在 JScript 中,如果你沒有指定 AssemblyName,JScript 會使用 ItemName 作為組裝名稱。
- itemType
- VsaItemType
所創造的項目類型,依列 VsaItemType 舉定義。
- itemFlag
- VsaItemFlag
可選的旗標用來指定程式碼項目的初始內容。
傳回
被創造的物件。