WorkflowCompilerResults WorkflowCompilerResults WorkflowCompilerResults WorkflowCompilerResults Class



This API is now obsolete.

Represents the results of a workflow compilation. This class cannot be inherited.

public ref class WorkflowCompilerResults sealed : System::CodeDom::Compiler::CompilerResults
[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
type WorkflowCompilerResults = class
    inherit CompilerResults
Public NotInheritable Class WorkflowCompilerResults
Inherits CompilerResults


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.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.OutputAssembly = "CustomOutlookWorkflow" + Guid.NewGuid().ToString() + ".dll"
results = compiler.Compile(parameters, Me.xamlFile)



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


CompiledAssembly CompiledAssembly CompiledAssembly CompiledAssembly

Gets or sets the compiled assembly.

(Inherited from CompilerResults)
CompiledUnit CompiledUnit CompiledUnit CompiledUnit

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

Errors Errors Errors Errors

Gets the collection of compiler errors and warnings.

(Inherited from CompilerResults)
Evidence Evidence Evidence Evidence

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

(Inherited from CompilerResults)
NativeCompilerReturnValue NativeCompilerReturnValue NativeCompilerReturnValue NativeCompilerReturnValue

Gets or sets the compiler's return value.

(Inherited from CompilerResults)
Output Output Output Output

Gets the compiler output messages.

(Inherited from CompilerResults)
PathToAssembly PathToAssembly PathToAssembly PathToAssembly

Gets or sets the path of the compiled assembly.

(Inherited from CompilerResults)
TempFiles TempFiles TempFiles TempFiles

Gets or sets the temporary file collection to use.

(Inherited from CompilerResults)


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to