CommandLineParseResult Class
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.
Represents the result of parsing a command line.
public sealed class CommandLineParseResult : IEquatable<Microsoft.Testing.Platform.CommandLine.CommandLineParseResult>
type CommandLineParseResult = class
interface IEquatable<CommandLineParseResult>
Public NotInheritable Class CommandLineParseResult
Implements IEquatable(Of CommandLineParseResult)
- Inheritance
-
CommandLineParseResult
- Implements
Constructors
| Name | Description |
|---|---|
| CommandLineParseResult(String, IReadOnlyList<CommandLineParseOption>, IReadOnlyList<String>) |
Initializes a new instance of the CommandLineParseResult class. |
Fields
| Name | Description |
|---|---|
| OptionPrefix |
The prefix for options. |
Properties
| Name | Description |
|---|---|
| Empty |
Gets an empty CommandLineParseResult. |
| Errors |
Gets the collection of errors associated to the parsing. |
| HasError |
Gets a value indicating whether the parsing has errors. |
| HasTool |
Gets a value indicating whether the parsing has a tool. |
| Options |
Gets the collection of parsed options. |
| ToolName |
Gets the name of the tool. |
Methods
| Name | Description |
|---|---|
| Equals(CommandLineParseResult) | Indicates whether the current object is equal to another object of the same type. |
| Equals(Object) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| IsOptionSet(String) |
Determines if the specified option is set. |
| ToString() | Returns a string that represents the current object. |
| TryGetOptionArgumentList(String, String[]) |
Gets the argument list for the specified option. |