PSConsoleReadLine.SetKeyHandler Method

Definition

Overloads

SetKeyHandler(String[], Action<Nullable<ConsoleKeyInfo>,Object>, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

SetKeyHandler(String[], ScriptBlock, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

SetKeyHandler(String[], Action<Nullable<ConsoleKeyInfo>,Object>, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

public:
 static void SetKeyHandler(cli::array <System::String ^> ^ key, Action<Nullable<ConsoleKeyInfo>, System::Object ^> ^ handler, System::String ^ briefDescription, System::String ^ longDescription);
public static void SetKeyHandler (string[] key, Action<ConsoleKeyInfo?,object> handler, string briefDescription, string longDescription);
static member SetKeyHandler : string[] * Action<Nullable<ConsoleKeyInfo>, obj> * string * string -> unit
Public Shared Sub SetKeyHandler (key As String(), handler As Action(Of Nullable(Of ConsoleKeyInfo), Object), briefDescription As String, longDescription As String)

Parameters

key
String[]
briefDescription
String
longDescription
String

Applies to

SetKeyHandler(String[], ScriptBlock, String, String)

Helper function for the Set-PSReadLineKeyHandler cmdlet.

public:
 static void SetKeyHandler(cli::array <System::String ^> ^ key, System::Management::Automation::ScriptBlock ^ scriptBlock, System::String ^ briefDescription, System::String ^ longDescription);
public static void SetKeyHandler (string[] key, System.Management.Automation.ScriptBlock scriptBlock, string briefDescription, string longDescription);
static member SetKeyHandler : string[] * System.Management.Automation.ScriptBlock * string * string -> unit
Public Shared Sub SetKeyHandler (key As String(), scriptBlock As ScriptBlock, briefDescription As String, longDescription As String)

Parameters

key
String[]
scriptBlock
ScriptBlock
briefDescription
String
longDescription
String

Applies to