TraceSourceExtensions.TraceWarning Method (TraceSource, String, Object[])

.NET Framework 4.5

Writes trace warning 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 TraceWarning ( _
    traceSource As TraceSource, _
    format As String, _
    ParamArray args As Object() _
)
'Usage
Dim traceSource As TraceSource 
Dim format As String 
Dim args As Object()

traceSource.TraceWarning(format, _
    args)
public static void TraceWarning(
    this TraceSource traceSource,
    string format,
    params Object[] args
)
[ExtensionAttribute]
public:
static void TraceWarning(
    TraceSource^ traceSource, 
    String^ format, 
    ... array<Object^>^ args
)
static member TraceWarning : 
        traceSource:TraceSource * 
        format:string * 
        args:Object[] -> unit
public static function TraceWarning(
    traceSource : TraceSource, 
    format : String, 
    ... args : Object[]
)

Parameters

  • args
    Type: System.Object[]
    The arguments associated with the format.

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

TraceWarning Overload

System.Diagnostics Namespace