C# 클래스 FdoToolbox.Core.AppFramework.ConsoleCommand

Base console command class. All console commands derive from this class.
상속: IConsoleCommand
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox

공개 메소드들

메소드 설명
Abort ( ) : void
Execute ( ) : int

Executes the command

보호된 메소드들

메소드 설명
CreateConnection ( string provider, string connStr ) : IConnection

Creates a new FDO connection

RepeatString ( string str, int iterations ) : string

Repeats a string for a given number of iterations

Write ( string str ) : void

Writes a line to the application console

WriteError ( string format ) : void

Writes an error to the application console

WriteException ( Exception ex ) : void

Writes an exception to the application console

WriteLine ( string str ) : void

Writes a newline-terminated line to the application console

WriteWarning ( string str ) : void

Writes a warning message to the application console

메소드 상세

Abort() 공개 메소드

public Abort ( ) : void
리턴 void

CreateConnection() 보호된 정적인 메소드

Creates a new FDO connection
protected static CreateConnection ( string provider, string connStr ) : IConnection
provider string
connStr string
리턴 IConnection

Execute() 공개 추상적인 메소드

Executes the command
public abstract Execute ( ) : int
리턴 int

RepeatString() 보호된 정적인 메소드

Repeats a string for a given number of iterations
protected static RepeatString ( string str, int iterations ) : string
str string
iterations int
리턴 string

Write() 보호된 메소드

Writes a line to the application console
protected Write ( string str ) : void
str string
리턴 void

WriteError() 보호된 메소드

Writes an error to the application console
protected WriteError ( string format ) : void
format string
리턴 void

WriteException() 보호된 메소드

Writes an exception to the application console
protected WriteException ( Exception ex ) : void
ex System.Exception
리턴 void

WriteLine() 보호된 메소드

Writes a newline-terminated line to the application console
protected WriteLine ( string str ) : void
str string
리턴 void

WriteWarning() 보호된 메소드

Writes a warning message to the application console
protected WriteWarning ( string str ) : void
str string The message
리턴 void