StaticParameterBinder.BindCommand StaticParameterBinder.BindCommand Method

Definition

Overloads

BindCommand(CommandAst) BindCommand(CommandAst)

Bind a CommandAst to one of PowerShell's built-in commands

BindCommand(CommandAst, Boolean) BindCommand(CommandAst, Boolean)

Bind a CommandAst to the specified command

BindCommand(CommandAst, Boolean, String[]) BindCommand(CommandAst, Boolean, String[])

Bind a CommandAst to the specified command

BindCommand(CommandAst) BindCommand(CommandAst)

Bind a CommandAst to one of PowerShell's built-in commands

public static System.Management.Automation.Language.StaticBindingResult BindCommand (System.Management.Automation.Language.CommandAst commandAst);
static member BindCommand : System.Management.Automation.Language.CommandAst -> System.Management.Automation.Language.StaticBindingResult
Parameters
commandAst
CommandAst CommandAst

The CommandAst that represents the command invocation.

Returns

The StaticBindingResult that represents the binding.

BindCommand(CommandAst, Boolean) BindCommand(CommandAst, Boolean)

Bind a CommandAst to the specified command

public static System.Management.Automation.Language.StaticBindingResult BindCommand (System.Management.Automation.Language.CommandAst commandAst, bool resolve);
static member BindCommand : System.Management.Automation.Language.CommandAst * bool -> System.Management.Automation.Language.StaticBindingResult
Parameters
commandAst
CommandAst CommandAst

The CommandAst that represents the command invocation.

resolve
Boolean Boolean

Boolean to determine whether binding should be syntactic, or should attempt to resolve against an existing command.

Returns

The StaticBindingResult that represents the binding.

BindCommand(CommandAst, Boolean, String[]) BindCommand(CommandAst, Boolean, String[])

Bind a CommandAst to the specified command

public static System.Management.Automation.Language.StaticBindingResult BindCommand (System.Management.Automation.Language.CommandAst commandAst, bool resolve, string[] desiredParameters);
static member BindCommand : System.Management.Automation.Language.CommandAst * bool * string[] -> System.Management.Automation.Language.StaticBindingResult
Parameters
commandAst
CommandAst CommandAst

The CommandAst that represents the command invocation.

resolve
Boolean Boolean

Boolean to determine whether binding should be syntactic, or should attempt to resolve against an existing command.

desiredParameters
String[]

A string array that represents parameter names of interest. If any of these are specified, then full binding is done.

Returns

The StaticBindingResult that represents the binding.

Applies to