C# Класс OpenStory.Common.ParameterList

Показать файл Открыть проект

Открытые методы

Метод Описание
FromEnvironment ( ) : ParameterList

Gets the parameter list from the Environment.CommandLine variable.

FromEnvironment ( string &error ) : ParameterList

Gets the parameter list from the Environment.CommandLine variable.

Parse ( string parameterString ) : ParameterList

Gets the parameter list from the provided string.

Parse ( string parameterString, string &error ) : ParameterList

Gets the parameter list from the provided string.

ToArgumentList ( ) : string[]

Constructs a string array parameter list.

This is useful when you need to use the list with the .NET methods to execute a process.

this ( string key ) : string

Gets the value of a parameter.

Приватные методы

Метод Описание
ParameterList ( string>.IDictionary parameters ) : System

Initializes a new instance of the ParameterList class.

ParseInitial ( string parameterString ) : string>.Dictionary

Parses the parameters from a provided parameter string.

The Environment.CommandLine property is useful for this.

ParseParameters ( string>.IDictionary parameters ) : string>.Dictionary
ParseParameters ( string>.IDictionary parameters, string &error ) : string>.Dictionary

Описание методов

FromEnvironment() публичный статический Метод

Gets the parameter list from the Environment.CommandLine variable.
Thrown if the provided parameter list has an invalid format.
public static FromEnvironment ( ) : ParameterList
Результат ParameterList

FromEnvironment() публичный статический Метод

Gets the parameter list from the Environment.CommandLine variable.
public static FromEnvironment ( string &error ) : ParameterList
error string A variable to hold any error messages.
Результат ParameterList

Parse() публичный статический Метод

Gets the parameter list from the provided string.
Thrown if the provided parameter list has an invalid format.
public static Parse ( string parameterString ) : ParameterList
parameterString string The string that contains the parameter information.
Результат ParameterList

Parse() публичный статический Метод

Gets the parameter list from the provided string.
public static Parse ( string parameterString, string &error ) : ParameterList
parameterString string The string that contains the parameter information.
error string A variable to hold any error messages.
Результат ParameterList

ToArgumentList() публичный Метод

Constructs a string array parameter list.
This is useful when you need to use the list with the .NET methods to execute a process.
public ToArgumentList ( ) : string[]
Результат string[]

this() публичный Метод

Gets the value of a parameter.
public this ( string key ) : string
key string The name of the parameter.
Результат string