次の方法で共有


VCToolFile.AddCustomBuildRule メソッド

ツール ファイルにカスタム ビルド規則を追加します。

名前空間:  Microsoft.VisualStudio.VCProjectEngine
アセンブリ:  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)

構文

'宣言
Function AddCustomBuildRule ( _
    Name As String, _
    CommandLine As String, _
    Outputs As String, _
    FileExtensions As String _
) As Object
Object AddCustomBuildRule(
    string Name,
    string CommandLine,
    string Outputs,
    string FileExtensions
)
Object^ AddCustomBuildRule(
    [InAttribute] String^ Name, 
    [InAttribute] String^ CommandLine, 
    [InAttribute] String^ Outputs, 
    [InAttribute] String^ FileExtensions
)
abstract AddCustomBuildRule : 
        Name:string * 
        CommandLine:string * 
        Outputs:string * 
        FileExtensions:string -> Object
function AddCustomBuildRule(
    Name : String, 
    CommandLine : String, 
    Outputs : String, 
    FileExtensions : String
) : Object

パラメーター

  • Name
    型 : String

    ビルド規則の名前。

  • CommandLine
    型 : String

    コマンド ラインのテキスト。

  • Outputs
    型 : String

    ビルド ツールの出力。

  • FileExtensions
    型 : String

    ビルド規則に適用するファイルの拡張子の一覧。

戻り値

型 : Object
ビルド規則オブジェクト。

.NET Framework セキュリティ

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

参照

関連項目

VCToolFile インターフェイス

Microsoft.VisualStudio.VCProjectEngine 名前空間