WorkflowCompilerParameters クラス

定義

注意事項

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

コンパイル中に、WorkflowCompiler に渡されたパラメーターを表します。

public ref class WorkflowCompilerParameters sealed : System::CodeDom::Compiler::CompilerParameters
[System.Serializable]
public sealed class WorkflowCompilerParameters : System.CodeDom.Compiler.CompilerParameters
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class WorkflowCompilerParameters : System.CodeDom.Compiler.CompilerParameters
[<System.Serializable>]
type WorkflowCompilerParameters = class
    inherit CompilerParameters
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowCompilerParameters = class
    inherit CompilerParameters
Public NotInheritable Class WorkflowCompilerParameters
Inherits CompilerParameters
継承
WorkflowCompilerParameters
属性

次のコード例は、WorkflowCompilerParameters クラスの新しいインスタンスを作成して LibraryPaths を追加し、CompilerParameters.OutputAssembly プロパティの値を設定する方法を示しています。 また、このコードでは、WorkflowCompiler クラスの新しいインスタンスを作成して、WorkflowCompiler.Compile メソッドを実行しています。 このコードは resultsWorkflowCompilerResults 型であることを前提とします。 このコード例は、WizardForm.cs ファイルから抜粋した Outlook ワークフロー ウィザードの SDK サンプルの一部です。 詳細については、「 Outlook ワークフロー ウィザード」を参照してください。

// Compile the workflow
String[] assemblyNames = { "ReadEmailActivity.dll" };
WorkflowCompiler compiler = new WorkflowCompiler();
WorkflowCompilerParameters parameters = new WorkflowCompilerParameters(assemblyNames);
parameters.LibraryPaths.Add(Path.GetDirectoryName(typeof(BaseMailbox).Assembly.Location));
parameters.OutputAssembly = "CustomOutlookWorkflow" + Guid.NewGuid().ToString() + ".dll";
results = compiler.Compile(parameters, this.xamlFile);
' Compile the workflow
Dim assemblyNames() As String = {"ReadEmailActivity.dll"}

Dim compiler As WorkflowCompiler = New WorkflowCompiler()
Dim parameters As WorkflowCompilerParameters = New WorkflowCompilerParameters(assemblyNames)
parameters.LibraryPaths.Add(Path.GetDirectoryName(GetType(BaseMailbox).Assembly.Location))
parameters.OutputAssembly = "CustomOutlookWorkflow" + Guid.NewGuid().ToString() + ".dll"
results = compiler.Compile(parameters, Me.xamlFile)

注釈

注意

ここでは、廃止された型と名前空間について説明します。 詳細については、「.NET 4.5 での Windows Workflow Foundation の新機能」を参照してください。

コンストラクター

WorkflowCompilerParameters()
古い.

WorkflowCompilerParameters クラスの新しいインスタンスを初期化します。

WorkflowCompilerParameters(String[])
古い.

WorkflowCompilerParameters クラスの新しいインスタンスを初期化します。コンパイルで使用するアセンブリの名前を引数として指定します。

WorkflowCompilerParameters(String[], String)
古い.

WorkflowCompilerParameters クラスの新しいインスタンスを初期化します。コンパイルで使用するアセンブリの名前と出力ファイルに適用する名前を引数として指定します。

WorkflowCompilerParameters(String[], String, Boolean)
古い.

WorkflowCompilerParameters クラスの新しいインスタンスを初期化します。コンパイルで使用するアセンブリの名前、出力ファイルに適用する名前、デバッグ情報を出力するかどうかを、引数として指定します。

WorkflowCompilerParameters(WorkflowCompilerParameters)
古い.

既存のインスタンスを使用して WorkflowCompilerParameters クラスの新しいインスタンスを初期化します。

プロパティ

CompilerOptions
古い.

このコンパイルのコマンド ライン オプションを表す文字列を取得または設定します。

CoreAssemblyFileName
古い.

ObjectStringInt32 などの基本型を含むコアまたは標準アセンブリの名前を取得または設定します。

(継承元 CompilerParameters)
EmbeddedResources
古い.

アセンブリ出力をコンパイルするときに含める .NET リソース ファイルを取得します。

(継承元 CompilerParameters)
Evidence
古い.

コンパイルしたアセンブリに与えるセキュリティ ポリシーのアクセス許可を表す証拠オブジェクトを指定します。

(継承元 CompilerParameters)
GenerateCodeCompileUnitOnly
古い.

CodeCompileUnit だけを生成するか、それとも C# または Visual Basic のコンパイラを起動して実行可能ファイルや DLL を生成するかを表す値を取得または設定します。

GenerateExecutable
古い.

実行可能ファイルを生成するかどうかを示す値を取得または設定します。

(継承元 CompilerParameters)
GenerateInMemory
古い.

メモリ内で出力を生成するかどうかを示す値を取得または設定します。

(継承元 CompilerParameters)
IncludeDebugInformation
古い.

コンパイルされた実行可能ファイルにデバッグ情報を含めるかどうかを示す値を取得または設定します。

(継承元 CompilerParameters)
LanguageToUse
古い.

CodeCompileUnit のコンパイル時に使う言語を表す文字列を取得または設定します。

LibraryPaths
古い.

参照先アセンブリを検索するためにコンパイラが使う、ディレクトリ名のコレクションを表すプロパティを取得します。

LinkedResources
古い.

現在のソースで参照されている .NET リソース ファイルを取得します。

(継承元 CompilerParameters)
MainClass
古い.

main クラスの名前を取得または設定します。

(継承元 CompilerParameters)
OutputAssembly
古い.

出力アセンブリの名前を取得または設定します。

(継承元 CompilerParameters)
ReferencedAssemblies
古い.

現在のプロジェクトで参照されるアセンブリを取得します。

(継承元 CompilerParameters)
TempFiles
古い.

一時ファイルを格納するコレクションを取得または設定します。

(継承元 CompilerParameters)
TreatWarningsAsErrors
古い.

警告をエラーとして扱うかどうかを示す値を取得または設定します。

(継承元 CompilerParameters)
UserCodeCompileUnits
古い.

起動したワークフロー コンパイラで使う、コード コンパイル単位のコレクションを取得または設定します。

UserToken
古い.

コンパイラ プロセスを作成するときに使用するユーザー トークンを取得または設定します。

(継承元 CompilerParameters)
WarningLevel
古い.

コンパイラがコンパイルを中止する警告レベルを取得または設定します。

(継承元 CompilerParameters)
Win32Resource
古い.

コンパイルされるアセンブリにリンクする Win32 リソース ファイルの名前を取得または設定します。

(継承元 CompilerParameters)

メソッド

Equals(Object)
古い.

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()
古い.

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()
古い.

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象