CommandLineOption Constructors

Definition

Overloads

CommandLineOption(String, String, ArgumentArity, Boolean)

Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
Source:
CommandLineOption.cs

Initializes a new instance of the CommandLineOption class.

public CommandLineOption(string name, string description, Microsoft.Testing.Platform.Extensions.CommandLine.ArgumentArity arity, bool isHidden);
new Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption : string * string * Microsoft.Testing.Platform.Extensions.CommandLine.ArgumentArity * bool -> Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption
Public Sub New (name As String, description As String, arity As ArgumentArity, isHidden As Boolean)

Parameters

name
String

The name of the command line option.

description
String

The description of the command line option.

arity
ArgumentArity

The arity of the command line option.

isHidden
Boolean

Indicates whether the command line option is hidden.

Remarks

This ctor is public and used by non built-in extension, we need to know if the extension is built-in or not to correctly handle the --internal- prefix.

Applies to

CommandLineOption(String, String, ArgumentArity, Boolean, String)

Source:
CommandLineOption.cs
Source:
CommandLineOption.cs
public CommandLineOption(string name, string description, Microsoft.Testing.Platform.Extensions.CommandLine.ArgumentArity arity, bool isHidden, string? obsolescenceMessage = default);
new Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption : string * string * Microsoft.Testing.Platform.Extensions.CommandLine.ArgumentArity * bool * string -> Microsoft.Testing.Platform.Extensions.CommandLine.CommandLineOption
Public Sub New (name As String, description As String, arity As ArgumentArity, isHidden As Boolean, Optional obsolescenceMessage As String = Nothing)

Parameters

name
String
description
String
isHidden
Boolean
obsolescenceMessage
String

Applies to