共用方式為


VBCodeProvider.CreateGenerator 方法 ()

請注意:這個方法現在已經過時。

取得 Visual Basic 程式碼產生器的執行個體。

命名空間: Microsoft.VisualBasic
組件: System (在 system.dll 中)

語法

'宣告
<ObsoleteAttribute("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")> _
Public Overrides Function CreateGenerator As ICodeGenerator
'用途
Dim instance As VBCodeProvider
Dim returnValue As ICodeGenerator

returnValue = instance.CreateGenerator
[ObsoleteAttribute("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")] 
public override ICodeGenerator CreateGenerator ()
[ObsoleteAttribute(L"Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.")] 
public:
virtual ICodeGenerator^ CreateGenerator () override
/** @attribute ObsoleteAttribute("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.") */ 
public ICodeGenerator CreateGenerator ()
ObsoleteAttribute("Callers should not use the ICodeGenerator interface and should instead use the methods directly on the CodeDomProvider class.") 
public override function CreateGenerator () : ICodeGenerator

傳回值

Visual Basic ICodeGenerator 實作的執行個體。

平台

Windows 98、 Windows 2000 SP4、 Windows Millennium Edition、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition

.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。

版本資訊

.NET Framework

支援版本:1.0、1.1
在 2.0 中已過時 (編譯器警告)

請參閱

參考

VBCodeProvider 類別
VBCodeProvider 成員
Microsoft.VisualBasic 命名空間
ICodeGenerator