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 方法。 這段程式碼假設 results 的型別為 WorkflowCompilerResults。 這個程式碼範例是 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)

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

建構函式

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
已淘汰.

取得或設定主要類別的名稱。

(繼承來源 CompilerParameters)
OutputAssembly
已淘汰.

取得或設定輸出組件的名稱。

(繼承來源 CompilerParameters)
ReferencedAssemblies
已淘汰.

取得目前專案所參考的組件。

(繼承來源 CompilerParameters)
TempFiles
已淘汰.

取得或設定包含暫存檔案的集合。

(繼承來源 CompilerParameters)
TreatWarningsAsErrors
已淘汰.

取得或設定值,指出是否將警告當做錯誤。

(繼承來源 CompilerParameters)
UserCodeCompileUnits
已淘汰.

取得或設定程式碼編譯單元的集合,這個集合將用於工作流程編譯器的這個引動過程中。

UserToken
已淘汰.

取得或設定在建立編譯器處理序 (Process) 時要使用的使用者語彙基元 (Token)。

(繼承來源 CompilerParameters)
WarningLevel
已淘汰.

取得或設定編譯器中止編譯所在的警告層級。

(繼承來源 CompilerParameters)
Win32Resource
已淘汰.

取得或設定要連結至已編譯組件內之 Win32 資源檔的檔名。

(繼承來源 CompilerParameters)

方法

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

適用於