共用方式為


IWizard.ShouldAddProjectItem 方法

表示指定的專案項目是否應該加入至專案。

命名空間:  Microsoft.VisualStudio.TemplateWizard
組件:  Microsoft.VisualStudio.TemplateWizardInterface (在 Microsoft.VisualStudio.TemplateWizardInterface.dll 中)

語法

'宣告
Function ShouldAddProjectItem ( _
    filePath As String _
) As Boolean
bool ShouldAddProjectItem(
    string filePath
)
bool ShouldAddProjectItem(
    String^ filePath
)
abstract ShouldAddProjectItem : 
        filePath:string -> bool 
function ShouldAddProjectItem(
    filePath : String
) : boolean

參數

傳回值

型別:System.Boolean
如果專案項目不應該加入至專案則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

IWizard 介面

Microsoft.VisualStudio.TemplateWizard 命名空間