WorkflowCompilerParameters Constructors

Definition

Initializes a new instance of the WorkflowCompilerParameters class.

Overloads

WorkflowCompilerParameters()

Initializes a new instance of the WorkflowCompilerParameters class.

WorkflowCompilerParameters(String[])

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation.

WorkflowCompilerParameters(WorkflowCompilerParameters)

Initializes a new instance of the WorkflowCompilerParameters class from an existing instance.

WorkflowCompilerParameters(String[], String)

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation, and the name to apply to the output file.

WorkflowCompilerParameters(String[], String, Boolean)

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation, and the name to apply to the output file, and the designator for inclusion of debug information.

WorkflowCompilerParameters()

Initializes a new instance of the WorkflowCompilerParameters class.

public:
 WorkflowCompilerParameters();
public WorkflowCompilerParameters ();
Public Sub New ()

Applies to

WorkflowCompilerParameters(String[])

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation.

public:
 WorkflowCompilerParameters(cli::array <System::String ^> ^ assemblyNames);
public WorkflowCompilerParameters (string[] assemblyNames);
new System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters : string[] -> System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters
Public Sub New (assemblyNames As String())

Parameters

assemblyNames
String[]

The names of the assemblies used in compilation.

Examples

The following code example demonstrates how to create a new instance of the WorkflowCompilerParameters class, add LibraryPaths and set the value for the CompilerParameters.OutputAssembly property. The code also creates a new instance of the WorkflowCompiler class and runs the WorkflowCompiler.Compile method. This code assumes that results is of type WorkflowCompilerResults. 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)

Applies to

WorkflowCompilerParameters(WorkflowCompilerParameters)

Initializes a new instance of the WorkflowCompilerParameters class from an existing instance.

public:
 WorkflowCompilerParameters(System::Workflow::ComponentModel::Compiler::WorkflowCompilerParameters ^ parameters);
public WorkflowCompilerParameters (System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters parameters);
new System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters : System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters -> System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters
Public Sub New (parameters As WorkflowCompilerParameters)

Parameters

parameters
WorkflowCompilerParameters

The instance of WorkflowCompilerParameters used to initialize the new instance.

Applies to

WorkflowCompilerParameters(String[], String)

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation, and the name to apply to the output file.

public:
 WorkflowCompilerParameters(cli::array <System::String ^> ^ assemblyNames, System::String ^ outputName);
public WorkflowCompilerParameters (string[] assemblyNames, string outputName);
new System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters : string[] * string -> System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters
Public Sub New (assemblyNames As String(), outputName As String)

Parameters

assemblyNames
String[]

The names of the assemblies used in compilation.

outputName
String

The name to apply to the output file.

Applies to

WorkflowCompilerParameters(String[], String, Boolean)

Initializes a new instance of the WorkflowCompilerParameters class, with the names of the assemblies used in compilation, and the name to apply to the output file, and the designator for inclusion of debug information.

public:
 WorkflowCompilerParameters(cli::array <System::String ^> ^ assemblyNames, System::String ^ outputName, bool includeDebugInformation);
public WorkflowCompilerParameters (string[] assemblyNames, string outputName, bool includeDebugInformation);
new System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters : string[] * string * bool -> System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters
Public Sub New (assemblyNames As String(), outputName As String, includeDebugInformation As Boolean)

Parameters

assemblyNames
String[]

The names of the assemblies used in compilation.

outputName
String

The name to apply to the output file.

includeDebugInformation
Boolean

Indicates whether a PDB file should be generated for debugging.

Applies to