C# 클래스 Microsoft.Scripting.Hosting.ScriptIO

Provides host-redirectable IO streams used by DLR languages for default IO.
상속: System.MarshalByRefObject
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ScriptIO System

공개 메소드들

메소드 설명
InitializeLifetimeService ( ) : object
RedirectToConsole ( ) : void
SetErrorOutput ( Stream stream, Encoding encoding ) : void
SetErrorOutput ( Stream stream, TextWriter writer ) : void
SetInput ( Stream stream, Encoding encoding ) : void
SetInput ( Stream stream, TextReader reader, Encoding encoding ) : void
SetOutput ( Stream stream, Encoding encoding ) : void

Used if the host stores the output as binary data.

SetOutput ( Stream stream, TextWriter writer ) : void

Used if the host handles both kinds of data (textual and binary) by itself.

비공개 메소드들

메소드 설명
ScriptIO ( SharedIO io ) : System

메소드 상세

InitializeLifetimeService() 공개 메소드

public InitializeLifetimeService ( ) : object
리턴 object

RedirectToConsole() 공개 메소드

public RedirectToConsole ( ) : void
리턴 void

SetErrorOutput() 공개 메소드

public SetErrorOutput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
리턴 void

SetErrorOutput() 공개 메소드

public SetErrorOutput ( Stream stream, TextWriter writer ) : void
stream Stream
writer System.IO.TextWriter
리턴 void

SetInput() 공개 메소드

public SetInput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
리턴 void

SetInput() 공개 메소드

public SetInput ( Stream stream, TextReader reader, Encoding encoding ) : void
stream Stream
reader TextReader
encoding System.Text.Encoding
리턴 void

SetOutput() 공개 메소드

Used if the host stores the output as binary data.
public SetOutput ( Stream stream, Encoding encoding ) : void
stream Stream Binary stream to write data to.
encoding System.Text.Encoding Encoding used to convert textual data written to the output by the script.
리턴 void

SetOutput() 공개 메소드

Used if the host handles both kinds of data (textual and binary) by itself.
public SetOutput ( Stream stream, TextWriter writer ) : void
stream Stream
writer System.IO.TextWriter
리턴 void