C# 클래스 OpenStory.Common.ParameterList

파일 보기 프로젝트 열기: shoftee/OpenStory

공개 메소드들

메소드 설명
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