TraceSourceExtensions.TraceError Method (TraceSource, String)

.NET Framework 4.5

Writes trace error message to the specified trace source.

Namespace:  System.Diagnostics
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub TraceError ( _
    traceSource As TraceSource, _
    msg As String _
)
'Usage
Dim traceSource As TraceSource 
Dim msg As String 

traceSource.TraceError(msg)
public static void TraceError(
    this TraceSource traceSource,
    string msg
)
[ExtensionAttribute]
public:
static void TraceError(
    TraceSource^ traceSource, 
    String^ msg
)
static member TraceError : 
        traceSource:TraceSource * 
        msg:string -> unit
public static function TraceError(
    traceSource : TraceSource, 
    msg : String
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TraceSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

TraceSourceExtensions Class

TraceError Overload

System.Diagnostics Namespace