次の方法で共有


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

パラメーター

  • filePath
    型: System.String
    プロジェクト項目のパス。

戻り値

型: System.Boolean
プロジェクト項目をプロジェクトに追加する場合は true。それ以外の場合は false。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

IWizard インターフェイス

Microsoft.VisualStudio.TemplateWizard 名前空間