BaseCodeGenerator.IVsSingleFileGenerator.Generate 方法
命名空间: Microsoft.VisualStudio.TextTemplating.VSHost
程序集: Microsoft.VisualStudio.TextTemplating.VSHost.10.0(在 Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll 中)
语法
声明
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 不支持显式接口实现。
参数
- wszInputFilePath
类型:System.String
- bstrInputFileContents
类型:System.String
- wszDefaultNamespace
类型:System.String
- rgbOutputFileContents
类型:array<System.IntPtr[]
- pcbOutput
类型:System.UInt32%
- pGenerateProgress
类型:Microsoft.VisualStudio.Shell.Interop.IVsGeneratorProgress
返回值
类型:System.Int32
返回 Int32。
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。