Freigeben über


CodeDomProvider.CreateParser-Methode

HINWEIS: Diese Methode ist mittlerweile veraltet.

Erstellt beim Überschreiben in einer abgeleiteten Klasse einen neuen Codeparser.

Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)

Syntax

'Declaration
<ObsoleteAttribute("Callers should not use the ICodeParser 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 Overridable Function CreateParser As ICodeParser
'Usage
Dim instance As CodeDomProvider
Dim returnValue As ICodeParser

returnValue = instance.CreateParser
[ObsoleteAttribute("Callers should not use the ICodeParser 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 ICodeParser CreateParser ()
[ObsoleteAttribute(L"Callers should not use the ICodeParser 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 ICodeParser^ CreateParser ()
/** @attribute ObsoleteAttribute("Callers should not use the ICodeParser 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 ICodeParser CreateParser ()
ObsoleteAttribute("Callers should not use the ICodeParser 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 function CreateParser () : ICodeParser

Rückgabewert

Ein ICodeParser zum Analysieren von Quellcode. Die Basisimplementierung gibt immer NULL (Nothing in Visual Basic) zurück.

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