WorkflowCompilerResults Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

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

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

System.Object
  System.CodeDom.Compiler.CompilerResults
    System.Workflow.ComponentModel.Compiler.WorkflowCompilerResults

[SerializableAttribute]
[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class WorkflowCompilerResults : CompilerResults

NameDescription
System_CAPS_pubpropertyCompiledAssembly

Gets or sets the compiled assembly.(Inherited from CompilerResults.)

System_CAPS_pubpropertyCompiledUnit

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

System_CAPS_pubpropertyErrors

Gets the collection of compiler errors and warnings.(Inherited from CompilerResults.)

System_CAPS_pubpropertyEvidence

Obsolete. Indicates the evidence object that represents the security policy permissions of the compiled assembly.(Inherited from CompilerResults.)

System_CAPS_pubpropertyNativeCompilerReturnValue

Gets or sets the compiler's return value.(Inherited from CompilerResults.)

System_CAPS_pubpropertyOutput

Gets the compiler output messages.(Inherited from CompilerResults.)

System_CAPS_pubpropertyPathToAssembly

Gets or sets the path of the compiled assembly.(Inherited from CompilerResults.)

System_CAPS_pubpropertyTempFiles

Gets or sets the temporary file collection to use.(Inherited from CompilerResults.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_noteNote

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

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);

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: