次の方法で共有


ICodeCompiler.CompileAssemblyFromFile メソッド

指定したコンパイラ設定を使用して、指定したファイルに格納されているソース コードからアセンブリをコンパイルします。

Function CompileAssemblyFromFile( _
   ByVal options As CompilerParameters, _   ByVal fileName As String _) As CompilerResults
[C#]
CompilerResults CompileAssemblyFromFile(
   CompilerParametersoptions,stringfileName);
[C++]
CompilerResults* CompileAssemblyFromFile(
   CompilerParameters* options,String* fileName);
[JScript]
function CompileAssemblyFromFile(
   options : CompilerParameters,fileName : String) : CompilerResults;

パラメータ

  • options
    コンパイルの設定を示す CompilerParameters オブジェクト。
  • fileName
    コンパイルするソース コードが格納されているファイルの名前。

戻り値

コンパイルの結果を示す CompilerResults オブジェクト。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ICodeCompiler インターフェイス | ICodeCompiler メンバ | System.CodeDom.Compiler 名前空間 | CompilerParameters | CompilerResults