次の方法で共有


CodeCompiler.FromSourceBatch メソッド

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

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

構文

'宣言
Protected Overridable Function FromSourceBatch ( _
    options As CompilerParameters, _
    sources As String() _
) As CompilerResults
'使用
Dim options As CompilerParameters
Dim sources As String()
Dim returnValue As CompilerResults

returnValue = Me.FromSourceBatch(options, sources)
protected virtual CompilerResults FromSourceBatch (
    CompilerParameters options,
    string[] sources
)
protected:
virtual CompilerResults^ FromSourceBatch (
    CompilerParameters^ options, 
    array<String^>^ sources
)
protected CompilerResults FromSourceBatch (
    CompilerParameters options, 
    String[] sources
)
protected function FromSourceBatch (
    options : CompilerParameters, 
    sources : String[]
) : CompilerResults

パラメータ

  • options
    コンパイルのときに使用するオプションを示す CompilerParameters
  • sources
    コンパイルするソース コードを格納している文字列の配列。

戻り値

コンパイルの結果を示す CompilerResults

.NET Framework のセキュリティ

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

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