WorkflowCompilerResults 類別

定義

警告

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

表示工作流程編譯的結果。 此類別無法獲得繼承。

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

範例

下列程式碼範例示範如何設定 WorkflowCompilerResults 類別的值,並假設 results 是先前在檔案中建立的 WorkflowCompilerResults 型別。 程式碼也會建立 WorkflowCompilerWorkflowCompilerParameters 類別的新執行個體,並設定一些值。 這個程式碼範例是 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 中即將淘汰的類型

屬性

CompiledAssembly

取得或設定已編譯的組件。

(繼承來源 CompilerResults)
CompiledUnit

取得在編譯工作流程期間產生的 CodeCompileUnit

Errors

取得編譯器錯誤和警告的集合。

(繼承來源 CompilerResults)
Evidence
已過時。
已過時。

表示代表已編譯組件之安全性原則權限的辨識項物件。

(繼承來源 CompilerResults)
NativeCompilerReturnValue

取得或設定編譯器的傳回值。

(繼承來源 CompilerResults)
Output

取得編譯器輸出訊息。

(繼承來源 CompilerResults)
PathToAssembly

取得或設定已編譯組件的路徑。

(繼承來源 CompilerResults)
TempFiles

取得或設定要使用的暫存檔案集合。

(繼承來源 CompilerResults)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於