다음을 통해 공유


ImportWorkflowCommand.CreateFunctionFromXaml Method

Definition

Overloads

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String, String, Nullable<PSLanguageMode>, ReadOnlyCollection<AttributeAst>)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

public:
 static System::String ^ CreateFunctionFromXaml(System::String ^ name, System::String ^ xaml, System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ requiredAssemblies, cli::array <System::String ^> ^ dependentWorkflows, System::String ^ dependentAssemblyPath, System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::Language::ParameterAst ^> ^ parameterValidation, System::String ^ modulePath, bool scriptWorkflow, System::String ^ workflowAttributes);
public static string CreateFunctionFromXaml (string name, string xaml, System.Collections.Generic.Dictionary<string,string> requiredAssemblies, string[] dependentWorkflows, string dependentAssemblyPath, System.Collections.Generic.Dictionary<string,System.Management.Automation.Language.ParameterAst> parameterValidation, string modulePath, bool scriptWorkflow, string workflowAttributes);
static member CreateFunctionFromXaml : string * string * System.Collections.Generic.Dictionary<string, string> * string[] * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.Language.ParameterAst> * string * bool * string -> string
Public Shared Function CreateFunctionFromXaml (name As String, xaml As String, requiredAssemblies As Dictionary(Of String, String), dependentWorkflows As String(), dependentAssemblyPath As String, parameterValidation As Dictionary(Of String, ParameterAst), modulePath As String, scriptWorkflow As Boolean, workflowAttributes As String) As String

Parameters

name
String

Workflow name

xaml
String

Workflow Xaml definition

requiredAssemblies
Dictionary<String,String>

Required assemblies

dependentWorkflows
String[]

Dependent workflows

dependentAssemblyPath
String

Path for dependent assemblies

parameterValidation
Dictionary<String,ParameterAst>

Workflow parameters

modulePath
String

Module path

scriptWorkflow
Boolean

True if this is script workflow

workflowAttributes
String

the attribute string to use for the workflow, should be '[CmdletBinding()]'

Returns

Applies to

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

public:
 static System::String ^ CreateFunctionFromXaml(System::String ^ name, System::String ^ xaml, System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ requiredAssemblies, cli::array <System::String ^> ^ dependentWorkflows, System::String ^ dependentAssemblyPath, System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::Language::ParameterAst ^> ^ parameterValidation, System::String ^ modulePath, bool scriptWorkflow, System::String ^ workflowAttributes, System::String ^ scriptContent);
public static string CreateFunctionFromXaml (string name, string xaml, System.Collections.Generic.Dictionary<string,string> requiredAssemblies, string[] dependentWorkflows, string dependentAssemblyPath, System.Collections.Generic.Dictionary<string,System.Management.Automation.Language.ParameterAst> parameterValidation, string modulePath, bool scriptWorkflow, string workflowAttributes, string scriptContent);
static member CreateFunctionFromXaml : string * string * System.Collections.Generic.Dictionary<string, string> * string[] * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.Language.ParameterAst> * string * bool * string * string -> string
Public Shared Function CreateFunctionFromXaml (name As String, xaml As String, requiredAssemblies As Dictionary(Of String, String), dependentWorkflows As String(), dependentAssemblyPath As String, parameterValidation As Dictionary(Of String, ParameterAst), modulePath As String, scriptWorkflow As Boolean, workflowAttributes As String, scriptContent As String) As String

Parameters

name
String

Workflow name

xaml
String

Workflow Xaml definition

requiredAssemblies
Dictionary<String,String>

Required assemblies

dependentWorkflows
String[]

Dependent workflows

dependentAssemblyPath
String

Path for dependent assemblies

parameterValidation
Dictionary<String,ParameterAst>

Workflow parameters

modulePath
String

Module path

scriptWorkflow
Boolean

True if this is script workflow

workflowAttributes
String

the attribute string to use for the workflow, should be '[CmdletBinding()]'

scriptContent
String

File path containing script content.

Returns

Applies to

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

public:
 static System::String ^ CreateFunctionFromXaml(System::String ^ name, System::String ^ xaml, System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ requiredAssemblies, cli::array <System::String ^> ^ dependentWorkflows, System::String ^ dependentAssemblyPath, System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::Language::ParameterAst ^> ^ parameterValidation, System::String ^ modulePath, bool scriptWorkflow, System::String ^ workflowAttributes, System::String ^ scriptContent, System::String ^ fullScript);
public static string CreateFunctionFromXaml (string name, string xaml, System.Collections.Generic.Dictionary<string,string> requiredAssemblies, string[] dependentWorkflows, string dependentAssemblyPath, System.Collections.Generic.Dictionary<string,System.Management.Automation.Language.ParameterAst> parameterValidation, string modulePath, bool scriptWorkflow, string workflowAttributes, string scriptContent, string fullScript);
static member CreateFunctionFromXaml : string * string * System.Collections.Generic.Dictionary<string, string> * string[] * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.Language.ParameterAst> * string * bool * string * string * string -> string
Public Shared Function CreateFunctionFromXaml (name As String, xaml As String, requiredAssemblies As Dictionary(Of String, String), dependentWorkflows As String(), dependentAssemblyPath As String, parameterValidation As Dictionary(Of String, ParameterAst), modulePath As String, scriptWorkflow As Boolean, workflowAttributes As String, scriptContent As String, fullScript As String) As String

Parameters

name
String

Workflow name

xaml
String

Workflow Xaml definition

requiredAssemblies
Dictionary<String,String>

Required assemblies

dependentWorkflows
String[]

Dependent workflows

dependentAssemblyPath
String

Path for dependent assemblies

parameterValidation
Dictionary<String,ParameterAst>

Workflow parameters

modulePath
String

Module path

scriptWorkflow
Boolean

True if this is script workflow

workflowAttributes
String

the attribute string to use for the workflow, should be '[CmdletBinding()]'

scriptContent
String

File path containing script content.

fullScript
String

Full source script.

Returns

Applies to

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String, String)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

public:
 static System::String ^ CreateFunctionFromXaml(System::String ^ name, System::String ^ xaml, System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ requiredAssemblies, cli::array <System::String ^> ^ dependentWorkflows, System::String ^ dependentAssemblyPath, System::Collections::Generic::Dictionary<System::String ^, System::Management::Automation::Language::ParameterAst ^> ^ parameterValidation, System::String ^ modulePath, bool scriptWorkflow, System::String ^ workflowAttributes, System::String ^ scriptContent, System::String ^ fullScript, System::String ^ rootWorkflowName);
public static string CreateFunctionFromXaml (string name, string xaml, System.Collections.Generic.Dictionary<string,string> requiredAssemblies, string[] dependentWorkflows, string dependentAssemblyPath, System.Collections.Generic.Dictionary<string,System.Management.Automation.Language.ParameterAst> parameterValidation, string modulePath, bool scriptWorkflow, string workflowAttributes, string scriptContent, string fullScript, string rootWorkflowName);
static member CreateFunctionFromXaml : string * string * System.Collections.Generic.Dictionary<string, string> * string[] * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.Language.ParameterAst> * string * bool * string * string * string * string -> string
Public Shared Function CreateFunctionFromXaml (name As String, xaml As String, requiredAssemblies As Dictionary(Of String, String), dependentWorkflows As String(), dependentAssemblyPath As String, parameterValidation As Dictionary(Of String, ParameterAst), modulePath As String, scriptWorkflow As Boolean, workflowAttributes As String, scriptContent As String, fullScript As String, rootWorkflowName As String) As String

Parameters

name
String

Workflow name

xaml
String

Workflow Xaml definition

requiredAssemblies
Dictionary<String,String>

Required assemblies

dependentWorkflows
String[]

Dependent workflows

dependentAssemblyPath
String

Path for dependent assemblies

parameterValidation
Dictionary<String,ParameterAst>

Workflow parameters

modulePath
String

Module path

scriptWorkflow
Boolean

True if this is script workflow

workflowAttributes
String

the attribute string to use for the workflow, should be '[CmdletBinding()]'

scriptContent
String

File path containing script content.

fullScript
String

Full source script.

rootWorkflowName
String

Only root Workflow will be compiled

Returns

Applies to

CreateFunctionFromXaml(String, String, Dictionary<String,String>, String[], String, Dictionary<String,ParameterAst>, String, Boolean, String, String, String, String, Nullable<PSLanguageMode>, ReadOnlyCollection<AttributeAst>)

Creates a workflow activity based on the provided Xaml and returns PowerShell script that will run the workflow.

public static string CreateFunctionFromXaml (string name, string xaml, System.Collections.Generic.Dictionary<string,string> requiredAssemblies, string[] dependentWorkflows, string dependentAssemblyPath, System.Collections.Generic.Dictionary<string,System.Management.Automation.Language.ParameterAst> parameterValidation, string modulePath, bool scriptWorkflow, string workflowAttributes, string scriptContent, string fullScript, string rootWorkflowName, System.Management.Automation.PSLanguageMode? sourceLanguageMode, System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.AttributeAst> attributeAstCollection);
static member CreateFunctionFromXaml : string * string * System.Collections.Generic.Dictionary<string, string> * string[] * string * System.Collections.Generic.Dictionary<string, System.Management.Automation.Language.ParameterAst> * string * bool * string * string * string * string * Nullable<System.Management.Automation.PSLanguageMode> * System.Collections.ObjectModel.ReadOnlyCollection<System.Management.Automation.Language.AttributeAst> -> string
Public Shared Function CreateFunctionFromXaml (name As String, xaml As String, requiredAssemblies As Dictionary(Of String, String), dependentWorkflows As String(), dependentAssemblyPath As String, parameterValidation As Dictionary(Of String, ParameterAst), modulePath As String, scriptWorkflow As Boolean, workflowAttributes As String, scriptContent As String, fullScript As String, rootWorkflowName As String, sourceLanguageMode As Nullable(Of PSLanguageMode), attributeAstCollection As ReadOnlyCollection(Of AttributeAst)) As String

Parameters

name
String

Workflow name

xaml
String

Workflow Xaml definition

requiredAssemblies
Dictionary<String,String>

Required assemblies

dependentWorkflows
String[]

Dependent workflows

dependentAssemblyPath
String

Path for dependent assemblies

parameterValidation
Dictionary<String,ParameterAst>

Workflow parameters

modulePath
String

Module path

scriptWorkflow
Boolean

True if this is script workflow

workflowAttributes
String

the attribute string to use for the workflow, should be '[CmdletBinding()]'

scriptContent
String

File path containing script content.

fullScript
String

Full source script.

rootWorkflowName
String

Only root Workflow will be compiled

sourceLanguageMode
Nullable<PSLanguageMode>

Language mode of source that is creating the workflow

attributeAstCollection
ReadOnlyCollection<AttributeAst>

Optional collection of parameter attribute Asts

Returns

Applies to