表示指定的專案項目是否應該加入至專案。
命名空間: 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
參數
- filePath
型別:System.String
專案項目的路徑。
傳回值
型別:System.Boolean
如果專案項目不應該加入至專案則為 true,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。