WorkflowCompiler.Compile(WorkflowCompilerParameters, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compiles a list of workflows contained in the files that are passed as parameters based on the WorkflowCompilerParameters.
public:
System::Workflow::ComponentModel::Compiler::WorkflowCompilerResults ^ Compile(System::Workflow::ComponentModel::Compiler::WorkflowCompilerParameters ^ parameters, ... cli::array <System::String ^> ^ files);
public System.Workflow.ComponentModel.Compiler.WorkflowCompilerResults Compile (System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters parameters, params string[] files);
member this.Compile : System.Workflow.ComponentModel.Compiler.WorkflowCompilerParameters * string[] -> System.Workflow.ComponentModel.Compiler.WorkflowCompilerResults
Public Function Compile (parameters As WorkflowCompilerParameters, ParamArray files As String()) As WorkflowCompilerResults
Parameters
- parameters
- WorkflowCompilerParameters
- files
- String[]
A string array that contains the paths to the files to compile. These files can be either code files (such as .vb or .cs) or workflow markup files. Workflow markup files must have an .xoml extension to be recognized by the compiler.
Returns
The WorkflowCompilerResults representing the results of the operation.
Exceptions
parameters
is a null reference (Visual Basic Nothing
).
-or-
files
is a null reference (Visual Basic Nothing
).
Examples
The following code example demonstrates how to use the Compile method. The code also creates new instances of the WorkflowCompiler and WorkflowCompilerParameters classes and sets some values. 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.