向工具文件添加一条自定义生成规则。
命名空间: 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
类型:System.String
生成规则的名称
- CommandLine
类型:System.String
命令行文本。
- Outputs
类型:System.String
生成工具输出。
- FileExtensions
类型:System.String
适用于此生成规则的文件扩展名的列表。
返回值
类型:System.Object
一个生成规则对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。