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)

适用于