CodeDomProvider.CreateCompiler Método

Definição

Cuidado

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.

Quando substituído em uma classe derivada, cria um novo compilador de código.

public:
 abstract System::CodeDom::Compiler::ICodeCompiler ^ CreateCompiler();
public abstract System.CodeDom.Compiler.ICodeCompiler CreateCompiler();
[System.Obsolete("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 System.CodeDom.Compiler.ICodeCompiler CreateCompiler();
abstract member CreateCompiler : unit -> System.CodeDom.Compiler.ICodeCompiler
[<System.Obsolete("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.")>]
abstract member CreateCompiler : unit -> System.CodeDom.Compiler.ICodeCompiler
Public MustOverride Function CreateCompiler () As ICodeCompiler

Retornos

Um ICodeCompiler que pode ser usado para compilação de representações de System.CodeDom código-fonte baseadas.

Atributos

Comentários

Esse método é obsoleto. A alternativa recomendada é chamar os ICodeCompiler métodos que estão diretamente disponíveis no provedor de código.

Notas aos Implementadores

Você deve implementar os ICodeCompiler membros na CodeDomProvider classe e gerar um NotSupportedException quando esse método for chamado.

Aplica-se a