다음을 통해 공유


CodeDomProvider.CreateCompiler 메서드

정의

주의

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.

주의

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

반환

ICodeCompiler 기준 소스 코드 표현을 컴파일하는 데 사용할 수 있는 System.CodeDom입니다.

특성

설명

이 메서드는 .NET Framework 2.0에서 사용되지 않습니다. 권장되는 대안은 코드 공급자에서 ICodeCompiler 직접 사용할 수 있는 메서드를 호출하는 것입니다.

구현자 참고

.NET Framework 2.0에서는 클래스의 멤버를 ICodeCompilerCodeDomProvider 구현하고 이 메서드가 호출되면 을 NotSupportedException throw해야 합니다.

적용 대상