C# 클래스 NLog.Internal.FileAppenders.BaseFileAppender

Base class for optimized file appenders.
상속: IDisposable
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

공개 메소드들

메소드 설명
BaseFileAppender ( string fileName, ICreateFileParameters createParameters ) : System

Initializes a new instance of the BaseFileAppender class.

Close ( ) : void

Closes this instance.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Flush ( ) : void

Flushes this instance.

GetFileInfo ( System.DateTime &lastWriteTime, long &fileLength ) : bool

Gets the file info.

Write ( byte bytes ) : void

Writes the specified bytes.

보호된 메소드들

메소드 설명
CreateFileStream ( bool allowConcurrentWrite ) : Windows.Storage.Streams.IRandomAccessStream

Creates the file stream.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

FileTouched ( ) : void

Records the last write time for a file.

FileTouched ( System.DateTime dateTime ) : void

Records the last write time for a file to be specific date.

비공개 메소드들

메소드 설명
TryCreateFileStream ( bool allowConcurrentWrite ) : Windows.Storage.Streams.IRandomAccessStream
WindowsCreateFile ( string fileName, bool allowConcurrentWrite ) : FileStream

메소드 상세

BaseFileAppender() 공개 메소드

Initializes a new instance of the BaseFileAppender class.
public BaseFileAppender ( string fileName, ICreateFileParameters createParameters ) : System
fileName string Name of the file.
createParameters ICreateFileParameters The create parameters.
리턴 System

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

Closes this instance.
public abstract Close ( ) : void
리턴 void

CreateFileStream() 보호된 메소드

Creates the file stream.
protected CreateFileStream ( bool allowConcurrentWrite ) : Windows.Storage.Streams.IRandomAccessStream
allowConcurrentWrite bool If set to true allow concurrent writes.
리턴 Windows.Storage.Streams.IRandomAccessStream

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

FileTouched() 보호된 메소드

Records the last write time for a file.
protected FileTouched ( ) : void
리턴 void

FileTouched() 보호된 메소드

Records the last write time for a file to be specific date.
protected FileTouched ( System.DateTime dateTime ) : void
dateTime System.DateTime Date and time when the last write occurred.
리턴 void

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

Flushes this instance.
public abstract Flush ( ) : void
리턴 void

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

Gets the file info.
public abstract GetFileInfo ( System.DateTime &lastWriteTime, long &fileLength ) : bool
lastWriteTime System.DateTime The last write time.
fileLength long Length of the file.
리턴 bool

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

Writes the specified bytes.
public abstract Write ( byte bytes ) : void
bytes byte The bytes.
리턴 void