WorkflowCompilerResults 类
定义
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
表示工作流编译的结果。Represents the results of a workflow compilation. 此类不能被继承。This class cannot be inherited.
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 类的值,并假定 results 的类型为先前在文件中创建的 WorkflowCompilerResults。The following code example demonstrates how to set the value of the WorkflowCompilerResults class, and assumes that results is of type WorkflowCompilerResults, which is created earlier in the file. 代码还创建 WorkflowCompiler 和 WorkflowCompilerParameters 类的新实例并设置一些值。The code also creates new instances of the WorkflowCompiler and WorkflowCompilerParameters classes and sets some values. 此代码示例摘自 WizardForm.cs 文件中的 Outlook 工作流向导 SDK 示例。This code example is part of the Outlook Workflow Wizard SDK Sample from the WizardForm.cs file. 有关详细信息,请参阅 Outlook 工作流向导。For more information, see Outlook Workflow Wizard.
// 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)
注解
备注
本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
属性
| CompiledAssembly |
获取或设置已编译的程序集。Gets or sets the compiled assembly. (继承自 CompilerResults) |
| CompiledUnit |
获取在工作流编译过程中生成的 CodeCompileUnit。Gets the CodeCompileUnit that was produced during compilation of the workflow. |
| Errors |
获取编译器错误和警告的集合。Gets the collection of compiler errors and warnings. (继承自 CompilerResults) |
| Evidence |
已过时。
已过时。
指示证据对象,该对象表示编译的程序集的安全策略权限。Indicates the evidence object that represents the security policy permissions of the compiled assembly. (继承自 CompilerResults) |
| NativeCompilerReturnValue |
获取或设置编译器的返回值。Gets or sets the compiler's return value. (继承自 CompilerResults) |
| Output |
获取编译器输出消息。Gets the compiler output messages. (继承自 CompilerResults) |
| PathToAssembly |
获取或设置已编译程序集的路径。Gets or sets the path of the compiled assembly. (继承自 CompilerResults) |
| TempFiles |
获取或设置要使用的临时文件集合。Gets or sets the temporary file collection to use. (继承自 CompilerResults) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |