Udostępnij za pośrednictwem


IdentityModelEventSource.WriteError Method

Definition

Overloads

WriteError(String)

Writes an error event log by using the provided string argument and current UTC time.

WriteError(String, Object[])

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

WriteError(String)

Writes an error event log by using the provided string argument and current UTC time.

[System.Diagnostics.Tracing.Event(4, Level=System.Diagnostics.Tracing.EventLevel.Error)]
public void WriteError (string message);
[<System.Diagnostics.Tracing.Event(4, Level=System.Diagnostics.Tracing.EventLevel.Error)>]
member this.WriteError : string -> unit
Public Sub WriteError (message As String)

Parameters

message
String

The log message.

Attributes

Applies to

WriteError(String, Object[])

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

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

Parameters

message
String

The log message.

args
Object[]

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

Attributes

Applies to