Sdílet prostřednictvím


PSConsoleReadLine.GetBufferState Method

Definition

Overloads

GetBufferState(String, Int32)

Get the state of the buffer - the current input and the position of the cursor

GetBufferState(Ast, Token[], ParseError[], Int32)

Get the state of the buffer - the ast, tokens, errors, and position of the cursor

GetBufferState(String, Int32)

Get the state of the buffer - the current input and the position of the cursor

public:
 static void GetBufferState([Runtime::InteropServices::Out] System::String ^ % input, [Runtime::InteropServices::Out] int % cursor);
 static void GetBufferState([Runtime::InteropServices::Out] std::wstring const & & input, [Runtime::InteropServices::Out] int & cursor);
public static void GetBufferState (out string input, out int cursor);
static member GetBufferState : string * int -> unit
Public Shared Sub GetBufferState (ByRef input As String, ByRef cursor As Integer)

Parameters

input
String
cursor
Int32

Applies to

GetBufferState(Ast, Token[], ParseError[], Int32)

Get the state of the buffer - the ast, tokens, errors, and position of the cursor

public:
 static void GetBufferState([Runtime::InteropServices::Out] System::Management::Automation::Language::Ast ^ % ast, [Runtime::InteropServices::Out] cli::array <System::Management::Automation::Language::Token ^> ^ % tokens, [Runtime::InteropServices::Out] cli::array <System::Management::Automation::Language::ParseError ^> ^ % parseErrors, [Runtime::InteropServices::Out] int % cursor);
public static void GetBufferState (out System.Management.Automation.Language.Ast ast, out System.Management.Automation.Language.Token[] tokens, out System.Management.Automation.Language.ParseError[] parseErrors, out int cursor);
static member GetBufferState : Ast * Token[] * ParseError[] * int -> unit
Public Shared Sub GetBufferState (ByRef ast As Ast, ByRef tokens As Token(), ByRef parseErrors As ParseError(), ByRef cursor As Integer)

Parameters

ast
Ast
tokens
Token[]
parseErrors
ParseError[]
cursor
Int32

Applies to