C# 클래스 Candor.ExecutionResults

파일 보기 프로젝트 열기: michael-lang/candor-common 1 사용 예제들

공개 메소드들

메소드 설명
AppendError ( string message ) : void

Adds a new error to the result.

AppendErrorFormat ( string message ) : void

Adds a new error to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.

AppendErrors ( StringCollection messages ) : void

Adds new errors to the result.

AppendErrors ( string messages ) : void

Adds new errors to the result.

AppendInfo ( string message ) : void

Adds a new info to the result.

AppendInfoFormat ( string message ) : void

Adds a new info to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.

AppendInfos ( StringCollection messages ) : void

Adds new infos to the result.

AppendInfos ( string messages ) : void

Adds new infos to the result.

AppendWarning ( string message ) : void

Adds a new warning to the result.

AppendWarningFormat ( string message ) : void

Adds a new warning to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.

AppendWarnings ( StringCollection messages ) : void

Adds new warnings to the result.

AppendWarnings ( string messages ) : void

Adds new warnings to the result.

Combine ( ExecutionResults results ) : void

Combines the results of another ExecutionResults into this instance.

ExecutionResults ( ) : System

Creates a new instance of ExecutionResults.

Fail ( ) : void

Fails the result without adding a reason why.

Reset ( ) : void

Resets this instance to a successful state and clears all error and warning messages.

ToHtmlString ( ) : string

Outputs the results as an Html string.

ToString ( ) : string

Converts the results of this instance into a single string.

ToString ( string delimeter ) : string

Converts the results of this instance into a single string using the supplied delimeter.

ToString ( string itemFormat, string delimeter ) : string

Converts the results of this instance into a single string using the supplied delimeter.

메소드 상세

AppendError() 공개 메소드

Adds a new error to the result.
public AppendError ( string message ) : void
message string The error message.
리턴 void

AppendErrorFormat() 공개 메소드

Adds a new error to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.
public AppendErrorFormat ( string message ) : void
message string The error message format with zero or /// more format items.
리턴 void

AppendErrors() 공개 메소드

Adds new errors to the result.
public AppendErrors ( StringCollection messages ) : void
messages System.Collections.Specialized.StringCollection A collection of error messages.
리턴 void

AppendErrors() 공개 메소드

Adds new errors to the result.
public AppendErrors ( string messages ) : void
messages string An array of error messages.
리턴 void

AppendInfo() 공개 메소드

Adds a new info to the result.
public AppendInfo ( string message ) : void
message string The info message.
리턴 void

AppendInfoFormat() 공개 메소드

Adds a new info to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.
public AppendInfoFormat ( string message ) : void
message string The info message format with zero or /// more format items.
리턴 void

AppendInfos() 공개 메소드

Adds new infos to the result.
public AppendInfos ( StringCollection messages ) : void
messages System.Collections.Specialized.StringCollection A collection of info messages.
리턴 void

AppendInfos() 공개 메소드

Adds new infos to the result.
public AppendInfos ( string messages ) : void
messages string An array of info messages.
리턴 void

AppendWarning() 공개 메소드

Adds a new warning to the result.
public AppendWarning ( string message ) : void
message string The warning message.
리턴 void

AppendWarningFormat() 공개 메소드

Adds a new warning to the result replacing the format items in the message with the text equivalent of the specified args. Each format specification is replaced by the string representation of the corresponding item in the object argument.
public AppendWarningFormat ( string message ) : void
message string The warning message format with zero or /// more format items.
리턴 void

AppendWarnings() 공개 메소드

Adds new warnings to the result.
public AppendWarnings ( StringCollection messages ) : void
messages System.Collections.Specialized.StringCollection A collection of warning messages.
리턴 void

AppendWarnings() 공개 메소드

Adds new warnings to the result.
public AppendWarnings ( string messages ) : void
messages string An array of warning messages.
리턴 void

Combine() 공개 메소드

Combines the results of another ExecutionResults into this instance.
public Combine ( ExecutionResults results ) : void
results ExecutionResults The results to be combined.
리턴 void

ExecutionResults() 공개 메소드

Creates a new instance of ExecutionResults.
public ExecutionResults ( ) : System
리턴 System

Fail() 공개 메소드

Fails the result without adding a reason why.
public Fail ( ) : void
리턴 void

Reset() 공개 메소드

Resets this instance to a successful state and clears all error and warning messages.
public Reset ( ) : void
리턴 void

ToHtmlString() 공개 메소드

Outputs the results as an Html string.
public ToHtmlString ( ) : string
리턴 string

ToString() 공개 메소드

Converts the results of this instance into a single string.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Converts the results of this instance into a single string using the supplied delimeter.
public ToString ( string delimeter ) : string
delimeter string Optional, a string to place /// between each execution step. Pass in /// 'null' or an empty string for no delimeter.
리턴 string

ToString() 공개 메소드

Converts the results of this instance into a single string using the supplied delimeter.
public ToString ( string itemFormat, string delimeter ) : string
itemFormat string The format for each execution step. /// Use '{Message}' in the format string to locate the message. /// Use '{StepType}' in the format string to locate the step type name. /// Do not include any other format specifications /// (IE. '{1}', '{2}', etc...)
delimeter string A string to place between each item.
리턴 string