WorkflowCompiler.Compile(WorkflowCompilerParameters, String[]) Method
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
- 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.
The WorkflowCompilerResults representing the results of the operation.
parameters
is a null reference (Visual Basic Nothing
).
-or-
files
is a null reference (Visual Basic Nothing
).
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.
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: