Condividi tramite


IdentityModelEventSource.Write Method

Definition

Overloads

Write(EventLevel, Exception, String)

Writes an exception log by using the provided event identifer, exception argument, string argument and current UTC time.

Write(EventLevel, Exception, String, Object[])

Writes an exception log by using the provided event identifer, exception argument, string argument, arguments list and current UTC time.

Write(EventLevel, Exception, String)

Writes an exception log by using the provided event identifer, exception argument, string argument and current UTC time.

[System.Diagnostics.Tracing.NonEvent]
public void Write (System.Diagnostics.Tracing.EventLevel level, Exception innerException, string message);
[<System.Diagnostics.Tracing.NonEvent>]
override this.Write : System.Diagnostics.Tracing.EventLevel * Exception * string -> unit
Public Sub Write (level As EventLevel, innerException As Exception, message As String)

Parameters

innerException
Exception

Exception

message
String

The log message.

Attributes

Applies to

Write(EventLevel, Exception, String, Object[])

Writes an exception log by using the provided event identifer, exception argument, string argument, arguments list and current UTC time.

[System.Diagnostics.Tracing.NonEvent]
public void Write (System.Diagnostics.Tracing.EventLevel level, Exception innerException, string message, params object[] args);
[<System.Diagnostics.Tracing.NonEvent>]
override this.Write : System.Diagnostics.Tracing.EventLevel * Exception * string * obj[] -> unit
Public Sub Write (level As EventLevel, innerException As Exception, message As String, ParamArray args As Object())

Parameters

innerException
Exception

Exception

message
String

The log message.

args
Object[]

An object array that contains zero or more objects to format.

Attributes

Applies to