CodeDomProvider.CreateCompiler-Methode
HINWEIS: Diese Methode ist mittlerweile veraltet.
Erstellt beim Überschreiben in einer abgeleiteten Klasse einen neuen Codecompiler.
Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)
Syntax
'Declaration
<ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.")> _
Public MustOverride Function CreateCompiler As ICodeCompiler
'Usage
Dim instance As CodeDomProvider
Dim returnValue As ICodeCompiler
returnValue = instance.CreateCompiler
[ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.")]
public abstract ICodeCompiler CreateCompiler ()
[ObsoleteAttribute(L"Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.")]
public:
virtual ICodeCompiler^ CreateCompiler () abstract
/** @attribute ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.") */
public abstract ICodeCompiler CreateCompiler ()
ObsoleteAttribute("Callers should not use the ICodeCompiler interface and should instead use the methods directly on the CodeDomProvider class. Those inheriting from CodeDomProvider must still implement this interface, and should exclude this warning or also obsolete this method.")
public abstract function CreateCompiler () : ICodeCompiler
Rückgabewert
Ein ICodeCompiler zum Kompilieren von System.CodeDom-basierten Quellcodedarstellungen.
Hinweise
Diese Methode ist in Microsoft .NET Framework, Version 2.0 veraltet. Die empfohlene Alternative besteht darin, die ICodeCompiler-Methoden aufzurufen, die im Codeanbieter direkt verfügbar sind.
Hinweise für Erben In sollten Sie die ICodeCompiler-Member in der CodeDomProvider-Klasse implementieren und eine NotSupportedException auslösen, wenn diese Methode aufgerufen wird.
Plattformen
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 unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 1.0, 1.1
Veraltet (Compilerwarnung) in 2.0
Siehe auch
Referenz
CodeDomProvider-Klasse
CodeDomProvider-Member
System.CodeDom.Compiler-Namespace