次の方法で共有


CodeCompiler.FromFile メソッド

指定したオプションを使用して、指定したファイルをコンパイルし、そのコンパイル結果を返します。

Protected Overridable Function FromFile( _
   ByVal options As CompilerParameters, _   ByVal fileName As String _) As CompilerResults
[C#]
protected virtual CompilerResults FromFile(CompilerParametersoptions,stringfileName);
[C++]
protected: virtual CompilerResults* FromFile(CompilerParameters* options,String* fileName);
[JScript]
protected function FromFile(
   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 ファミリ

.NET Framework セキュリティ:

参照

CodeCompiler クラス | CodeCompiler メンバ | System.CodeDom.Compiler 名前空間 | CompilerParameters | CompilerResults