BaseCodeGenerator.IVsSingleFileGenerator.Generate Method
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.12.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.12.0.dll)
Syntax
'Declaration
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 does not support explicit interface implementations.
Parameters
- wszInputFilePath
Type: System.String
- bstrInputFileContents
Type: System.String
- wszDefaultNamespace
Type: System.String
- rgbOutputFileContents
Type: array<System.IntPtr[]
- pcbOutput
Type: System.UInt32%
- pGenerateProgress
Type: Microsoft.VisualStudio.Shell.Interop.IVsGeneratorProgress
Return Value
Type: System.Int32
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.