指定したオプションを使用して、指定したソース コード文字列をコンパイルし、そのコンパイル結果を返します。
名前空間: System.CodeDom.Compiler
アセンブリ: System (system.dll 内)
構文
'宣言
Protected Overridable Function FromSource ( _
options As CompilerParameters, _
source As String _
) As CompilerResults
'使用
Dim options As CompilerParameters
Dim source As String
Dim returnValue As CompilerResults
returnValue = Me.FromSource(options, source)
protected virtual CompilerResults FromSource (
CompilerParameters options,
string source
)
protected:
virtual CompilerResults^ FromSource (
CompilerParameters^ options,
String^ source
)
protected CompilerResults FromSource (
CompilerParameters options,
String source
)
protected function FromSource (
options : CompilerParameters,
source : String
) : CompilerResults
パラメータ
- options
コンパイルのときに使用するオプションを示す CompilerParameters。
- source
コンパイルするソース コード文字列。
戻り値
コンパイルの結果を示す CompilerResults。
.NET Framework のセキュリティ
- SecurityPermission (コンパイルするために必要なアクセス許可)。SecurityPermissionFlag.UnmanagedCode (関連する列挙体)
プラットフォーム
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