Бөлісу құралы:


CodeDomProvider.CreateParser Метод

Определение

Внимание!

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.

Внимание!

ICodeParser has been deprecated. Use the methods directly on the CodeDomProvider class instead. Classes inheriting from CodeDomProvider must still implement this interface, and should suppress this warning or also mark this method as obsolete.

При переопределении в производном классе создает новый анализатор кода.

public:
 virtual System::CodeDom::Compiler::ICodeParser ^ CreateParser();
[System.Obsolete("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 System.CodeDom.Compiler.ICodeParser CreateParser ();
[System.Obsolete("ICodeParser has been deprecated. Use the methods directly on the CodeDomProvider class instead. Classes inheriting from CodeDomProvider must still implement this interface, and should suppress this warning or also mark this method as obsolete.")]
public virtual System.CodeDom.Compiler.ICodeParser CreateParser ();
public virtual System.CodeDom.Compiler.ICodeParser CreateParser ();
[<System.Obsolete("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.")>]
abstract member CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
override this.CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
[<System.Obsolete("ICodeParser has been deprecated. Use the methods directly on the CodeDomProvider class instead. Classes inheriting from CodeDomProvider must still implement this interface, and should suppress this warning or also mark this method as obsolete.")>]
abstract member CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
override this.CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
abstract member CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
override this.CreateParser : unit -> System.CodeDom.Compiler.ICodeParser
Public Overridable Function CreateParser () As ICodeParser

Возвращаемое значение

Объект ICodeParser, который может использоваться для анализа исходного кода. Базовая реализация всегда возвращает значение null.

Атрибуты

Применяется к