C# 클래스 Newtonsoft.Json.Serialization.MemoryTraceWriter

Represents a trace writer that writes to memory. When the trace message limit is reached then old trace messages will be removed as new messages are added.
상속: ITraceWriter
파일 보기 프로젝트 열기: JamesNK/Newtonsoft.Json 1 사용 예제들

공개 메소드들

메소드 설명
GetTraceMessages ( ) : IEnumerable

Returns an enumeration of the most recent trace messages.

MemoryTraceWriter ( ) : System

Initializes a new instance of the MemoryTraceWriter class.

ToString ( ) : string

Returns a String of the most recent trace messages.

Trace ( TraceLevel level, string message, Exception ex ) : void

Writes the specified trace level, message and optional exception.

메소드 상세

GetTraceMessages() 공개 메소드

Returns an enumeration of the most recent trace messages.
public GetTraceMessages ( ) : IEnumerable
리턴 IEnumerable

MemoryTraceWriter() 공개 메소드

Initializes a new instance of the MemoryTraceWriter class.
public MemoryTraceWriter ( ) : System
리턴 System

ToString() 공개 메소드

Returns a String of the most recent trace messages.
public ToString ( ) : string
리턴 string

Trace() 공개 메소드

Writes the specified trace level, message and optional exception.
public Trace ( TraceLevel level, string message, Exception ex ) : void
level TraceLevel The at which to write this trace.
message string The trace message.
ex System.Exception The trace exception. This parameter is optional.
리턴 void