CodeDomProvider.CreateCompiler メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeDomProvider.CreateCompiler メソッドの意味・解説 

CodeDomProvider.CreateCompiler メソッド

メモ : このメソッドは、互換性のために残されています。

派生クラスでオーバーライドされると、新しいコード コンパイラを作成します。

名前空間: System.CodeDom.Compiler
アセンブリ: System (system.dll 内)
構文構文

<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
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

戻り値
System.CodeDom ベースのソース コードをコンパイルするために使用できる ICodeCompiler。

解説解説

Microsoft .NET Framework version 2.0 では、このメソッドは使用されません。このメソッドの代わりに、コード プロバイダで直接使用できる ICodeCompiler メソッドを呼び出すことをお勧めします。

継承時の注意 .NET Framework 2.0 では、CodeDomProvider クラスの ICodeCompiler のメンバを実装し、このメソッドが呼び出されたら NotSupportedException をスローする必要があります。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeDomProvider クラス
CodeDomProvider メンバ
System.CodeDom.Compiler 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

CodeDomProvider.CreateCompiler メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



CodeDomProvider.CreateCompiler メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS