Table of Contents

Class CommandLine

Namespace
Tudormobile.Wpf
Assembly
Tudormobile.WpfApp.dll

Represents the current process command line.

public class CommandLine : ICommandLine
Inheritance
CommandLine
Implements
Inherited Members

Properties

Arguments

Command line arguments.

public string[] Arguments { get; }

Property Value

string[]

this[string]

Retrieve a command line argument.

public virtual (bool Exists, string? Value) this[string key] { get; }

Parameters

key string

Argument name.

Property Value

(bool Exists, string Value)

(true, value) if the argument exists (value is optional)

ProgramName

Name of the process currently running.

public string ProgramName { get; }

Property Value

string