Share via


CodeCompiler.FromSource(CompilerParameters, String) メソッド

定義

指定したオプションを使用して、指定したソース コード文字列をコンパイルし、そのコンパイル結果を返します。

protected:
 virtual System::CodeDom::Compiler::CompilerResults ^ FromSource(System::CodeDom::Compiler::CompilerParameters ^ options, System::String ^ source);
protected virtual System.CodeDom.Compiler.CompilerResults FromSource (System.CodeDom.Compiler.CompilerParameters options, string source);
abstract member FromSource : System.CodeDom.Compiler.CompilerParameters * string -> System.CodeDom.Compiler.CompilerResults
override this.FromSource : System.CodeDom.Compiler.CompilerParameters * string -> System.CodeDom.Compiler.CompilerResults
Protected Overridable Function FromSource (options As CompilerParameters, source As String) As CompilerResults

パラメーター

options
CompilerParameters

コンパイラ オプションを示す CompilerParameters オブジェクト。

source
String

コンパイルするソース コード文字列。

戻り値

コンパイルの結果。

例外

optionsnullです。

適用対象

こちらもご覧ください