BaseTemplatedCodeGenerator.GenerateCode 方法

从输入模板和模板参数生成最终代码

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.VSHost.11.0(在 Microsoft.VisualStudio.TextTemplating.VSHost.11.0.dll 中)

语法

声明
Protected Overrides Function GenerateCode ( _
    inputFileName As String, _
    inputFileContent As String _
) As Byte()
protected override byte[] GenerateCode(
    string inputFileName,
    string inputFileContent
)
protected:
virtual array<unsigned char>^ GenerateCode(
    String^ inputFileName, 
    String^ inputFileContent
) override
abstract GenerateCode : 
        inputFileName:string * 
        inputFileContent:string -> byte[] 
override GenerateCode : 
        inputFileName:string * 
        inputFileContent:string -> byte[] 
protected override function GenerateCode(
    inputFileName : String, 
    inputFileContent : String
) : byte[]

参数

返回值

类型:array<System.Byte[]

.NET Framework 安全性

请参见

参考

BaseTemplatedCodeGenerator 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间