Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CommandLineParser.SplitCommandLine(String) Method

Definition

Namespace:
System.CommandLine.Parsing
Assembly:
System.CommandLine.dll
Package:
System.CommandLine v3.0.0-preview.5.26302.115
Source:
CommandLineParser.cs
Source:
CommandLineParser.cs

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.

Splits a string into a sequence of strings based on whitespace and quotation marks.

public:
 static System::Collections::Generic::IEnumerable<System::String ^> ^ SplitCommandLine(System::String ^ commandLine);
public static System.Collections.Generic.IEnumerable<string> SplitCommandLine(string commandLine);
static member SplitCommandLine : string -> seq<string>
Public Shared Iterator Function SplitCommandLine (commandLine As String) As IEnumerable(Of String)

Parameters

commandLine
String

A command line input string.

Returns

A sequence of strings.

Applies to


Feedback

Was this page helpful?