Επεξεργασία

Κοινή χρήση μέσω


WorkflowCompilerResults Class

Definition

Caution

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
Inheritance
WorkflowCompilerResults
Attributes

Examples

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. The code also creates new instances of the WorkflowCompiler and WorkflowCompilerParameters classes and sets some values. This code example is part of the Outlook Workflow Wizard SDK Sample from the WizardForm.cs file. 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)

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Properties

CompiledAssembly

Gets or sets the compiled assembly.

(Inherited from CompilerResults)
CompiledUnit

Gets the CodeCompileUnit that was produced during compilation of the workflow.

Errors

Gets the collection of compiler errors and warnings.

(Inherited from CompilerResults)
Evidence
Obsolete.

Indicates the evidence object that represents the security policy permissions of the compiled assembly.

(Inherited from CompilerResults)
NativeCompilerReturnValue

Gets or sets the compiler's return value.

(Inherited from CompilerResults)
Output

Gets the compiler output messages.

(Inherited from CompilerResults)
PathToAssembly

Gets or sets the path of the compiled assembly.

(Inherited from CompilerResults)
TempFiles

Gets or sets the temporary file collection to use.

(Inherited from CompilerResults)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to