C# 클래스 System.Diagnostics.TracerSourceExtensions

Provides usability overloads for tracing to a ITraceSource.
파일 보기 프로젝트 열기: netfx/extensions

공개 메소드들

메소드 설명
StartActivity ( this source, string format ) : IDisposable

Starts a new activity scope.

TraceData ( this source, TraceEventType eventType, object data ) : void

Traces data with the given associated TraceEventType.

TraceError ( this source, Exception exception ) : void

Traces an event of type TraceEventType.Error with the given exception, using the Exception.Message as the trace event message.

TraceError ( this source, Exception exception, string format ) : void

Traces an event of type TraceEventType.Error with the given exception, format string and arguments.

TraceError ( this source, string format ) : void

Traces an event of type TraceEventType.Error with the given format string and arguments.

TraceInformation ( this source, string message ) : void

Traces an event of type TraceEventType.Information with the given message;

TraceVerbose ( this source, string message ) : void

Traces an event of type TraceEventType.Verbose with the given message.

TraceWarning ( this source, string message ) : void

Traces an event of type TraceEventType.Warning with the given message;

메소드 상세

StartActivity() 공개 정적인 메소드

Starts a new activity scope.
public static StartActivity ( this source, string format ) : IDisposable
source this
format string
리턴 IDisposable

TraceData() 공개 정적인 메소드

Traces data with the given associated TraceEventType.
public static TraceData ( this source, TraceEventType eventType, object data ) : void
source this
eventType TraceEventType
data object
리턴 void

TraceError() 공개 정적인 메소드

Traces an event of type TraceEventType.Error with the given exception, using the Exception.Message as the trace event message.
public static TraceError ( this source, Exception exception ) : void
source this
exception Exception
리턴 void

TraceError() 공개 정적인 메소드

Traces an event of type TraceEventType.Error with the given exception, format string and arguments.
public static TraceError ( this source, Exception exception, string format ) : void
source this
exception Exception
format string
리턴 void

TraceError() 공개 정적인 메소드

Traces an event of type TraceEventType.Error with the given format string and arguments.
public static TraceError ( this source, string format ) : void
source this
format string
리턴 void

TraceInformation() 공개 정적인 메소드

Traces an event of type TraceEventType.Information with the given message;
public static TraceInformation ( this source, string message ) : void
source this
message string
리턴 void

TraceVerbose() 공개 정적인 메소드

Traces an event of type TraceEventType.Verbose with the given message.
public static TraceVerbose ( this source, string message ) : void
source this
message string
리턴 void

TraceWarning() 공개 정적인 메소드

Traces an event of type TraceEventType.Warning with the given message;
public static TraceWarning ( this source, string message ) : void
source this
message string
리턴 void