WorkflowCompilerParameters WorkflowCompilerParameters WorkflowCompilerParameters WorkflowCompilerParameters Class

Definition

Warning

This API is now obsolete.

Represents parameters passed to WorkflowCompiler during the compilation process.

public ref class WorkflowCompilerParameters sealed : System::CodeDom::Compiler::CompilerParameters
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
[System.Serializable]
public sealed class WorkflowCompilerParameters : System.CodeDom.Compiler.CompilerParameters
type WorkflowCompilerParameters = class
    inherit CompilerParameters
Public NotInheritable Class WorkflowCompilerParameters
Inherits CompilerParameters
Inheritance
WorkflowCompilerParametersWorkflowCompilerParametersWorkflowCompilerParametersWorkflowCompilerParameters
Attributes

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)

Remarks

Note

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

Constructors

WorkflowCompilerParameters() WorkflowCompilerParameters() WorkflowCompilerParameters() WorkflowCompilerParameters()

Initializes a new instance of the WorkflowCompilerParameters class.

WorkflowCompilerParameters(String[]) WorkflowCompilerParameters(String[]) WorkflowCompilerParameters(String[]) WorkflowCompilerParameters(String[])

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

WorkflowCompilerParameters(String[], String) WorkflowCompilerParameters(String[], String) WorkflowCompilerParameters(String[], String) 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) WorkflowCompilerParameters(String[], String, Boolean) WorkflowCompilerParameters(String[], String, Boolean) 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(WorkflowCompilerParameters) WorkflowCompilerParameters(WorkflowCompilerParameters) WorkflowCompilerParameters(WorkflowCompilerParameters) WorkflowCompilerParameters(WorkflowCompilerParameters)

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

Properties

CompilerOptions CompilerOptions CompilerOptions CompilerOptions

Gets or sets a string that contains command-line options for this compilation.

CoreAssemblyFileName CoreAssemblyFileName CoreAssemblyFileName CoreAssemblyFileName

Gets or sets the name of the core or standard assembly that contains basic types such as Object, String, or Int32.

(Inherited from CompilerParameters)
EmbeddedResources EmbeddedResources EmbeddedResources EmbeddedResources

Gets the .NET Framework resource files to include when compiling the assembly output.

(Inherited from CompilerParameters)
Evidence Evidence Evidence Evidence

Specifies an evidence object that represents the security policy permissions to grant the compiled assembly.

(Inherited from CompilerParameters)
GenerateCodeCompileUnitOnly GenerateCodeCompileUnitOnly GenerateCodeCompileUnitOnly GenerateCodeCompileUnitOnly

Gets or sets a value which indicates whether to generate only a CodeCompileUnit, or to call the C# or Visual Basic compiler to generate the executable or DLL.

GenerateExecutable GenerateExecutable GenerateExecutable GenerateExecutable

Gets or sets a value indicating whether to generate an executable.

(Inherited from CompilerParameters)
GenerateInMemory GenerateInMemory GenerateInMemory GenerateInMemory

Gets or sets a value indicating whether to generate the output in memory.

(Inherited from CompilerParameters)
IncludeDebugInformation IncludeDebugInformation IncludeDebugInformation IncludeDebugInformation

Gets or sets a value indicating whether to include debug information in the compiled executable.

(Inherited from CompilerParameters)
LanguageToUse LanguageToUse LanguageToUse LanguageToUse

Gets or sets a string which contains the language to use in compilation of the CodeCompileUnit.

LibraryPaths LibraryPaths LibraryPaths LibraryPaths

Gets the property that represents a collection of directory names under which compiler looks for referenced assemblies.

LinkedResources LinkedResources LinkedResources LinkedResources

Gets the .NET Framework resource files that are referenced in the current source.

(Inherited from CompilerParameters)
MainClass MainClass MainClass MainClass

Gets or sets the name of the main class.

(Inherited from CompilerParameters)
OutputAssembly OutputAssembly OutputAssembly OutputAssembly

Gets or sets the name of the output assembly.

(Inherited from CompilerParameters)
ReferencedAssemblies ReferencedAssemblies ReferencedAssemblies ReferencedAssemblies

Gets the assemblies referenced by the current project.

(Inherited from CompilerParameters)
TempFiles TempFiles TempFiles TempFiles

Gets or sets the collection that contains the temporary files.

(Inherited from CompilerParameters)
TreatWarningsAsErrors TreatWarningsAsErrors TreatWarningsAsErrors TreatWarningsAsErrors

Gets or sets a value indicating whether to treat warnings as errors.

(Inherited from CompilerParameters)
UserCodeCompileUnits UserCodeCompileUnits UserCodeCompileUnits UserCodeCompileUnits

Gets or sets the collection of code compile units which will be used in this invocation of the workflow compiler.

UserToken UserToken UserToken UserToken

Gets or sets the user token to use when creating the compiler process.

(Inherited from CompilerParameters)
WarningLevel WarningLevel WarningLevel WarningLevel

Gets or sets the warning level at which the compiler aborts compilation.

(Inherited from CompilerParameters)
Win32Resource Win32Resource Win32Resource Win32Resource

Gets or sets the file name of a Win32 resource file to link into the compiled assembly.

(Inherited from CompilerParameters)

Methods

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