StaticParameterBinder.BindCommand 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.
Overloads
BindCommand(CommandAst) |
Bind a CommandAst to one of PowerShell's built-in commands. |
BindCommand(CommandAst, Boolean) |
Bind a CommandAst to the specified command. |
BindCommand(CommandAst, Boolean, String[]) |
Bind a CommandAst to the specified command. |
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);
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
Public Shared Function BindCommand (commandAst As CommandAst) As StaticBindingResult
Parameters
- commandAst
- CommandAst
The CommandAst that represents the command invocation.
Returns
The StaticBindingResult that represents the binding.
Applies to
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);
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
Public Shared Function BindCommand (commandAst As CommandAst, resolve As Boolean) As StaticBindingResult
Parameters
- commandAst
- CommandAst
The CommandAst that represents the command invocation.
- resolve
- 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.
Applies to
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, cli::array <System::String ^> ^ desiredParameters);
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
Public Shared Function BindCommand (commandAst As CommandAst, resolve As Boolean, desiredParameters As String()) As StaticBindingResult
Parameters
- commandAst
- CommandAst
The CommandAst that represents the command invocation.
- resolve
- 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.