Partilhar via


Método BaseCodeGenerator.IVsSingleFileGenerator.Generate

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (em Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)

Sintaxe

'Declaração
Private Function Generate ( _
    wszInputFilePath As String, _
    bstrInputFileContents As String, _
    wszDefaultNamespace As String, _
    rgbOutputFileContents As IntPtr(), _
    <OutAttribute> ByRef pcbOutput As UInteger, _
    pGenerateProgress As IVsGeneratorProgress _
) As Integer Implements IVsSingleFileGenerator.Generate
int IVsSingleFileGenerator.Generate(
    string wszInputFilePath,
    string bstrInputFileContents,
    string wszDefaultNamespace,
    IntPtr[] rgbOutputFileContents,
    out uint pcbOutput,
    IVsGeneratorProgress pGenerateProgress
)
private:
virtual int Generate(
    String^ wszInputFilePath, 
    String^ bstrInputFileContents, 
    String^ wszDefaultNamespace, 
    array<IntPtr>^ rgbOutputFileContents, 
    [OutAttribute] unsigned int% pcbOutput, 
    IVsGeneratorProgress^ pGenerateProgress
) sealed = IVsSingleFileGenerator::Generate
private abstract Generate : 
        wszInputFilePath:string * 
        bstrInputFileContents:string * 
        wszDefaultNamespace:string * 
        rgbOutputFileContents:IntPtr[] * 
        pcbOutput:uint32 byref * 
        pGenerateProgress:IVsGeneratorProgress -> int  
private override Generate : 
        wszInputFilePath:string * 
        bstrInputFileContents:string * 
        wszDefaultNamespace:string * 
        rgbOutputFileContents:IntPtr[] * 
        pcbOutput:uint32 byref * 
        pGenerateProgress:IVsGeneratorProgress -> int
JScript não oferece suporte a implementações explícitas da interface.

Parâmetros

  • wszInputFilePath
    Tipo: String
  • bstrInputFileContents
    Tipo: String
  • wszDefaultNamespace
    Tipo: String
  • rgbOutputFileContents
    Tipo: array<IntPtr[]
  • pcbOutput
    Tipo: UInt32%
  • pGenerateProgress
    Tipo: IVsGeneratorProgress

Valor de retorno

Tipo: Int32

Implementações

IVsSingleFileGenerator.Generate(String, String, String, IntPtr, UInt32, IVsGeneratorProgress)

Segurança do .NET Framework

Consulte também

Referência

BaseCodeGenerator Classe

Namespace Microsoft.VisualStudio.TextTemplating.VSHost