Delen via


TeamFoundationTrace.WarningIf Method (Boolean, String)

Conditionally writes a warning message to the trace output.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public Shared Sub WarningIf ( _
    condition As Boolean, _
    info As String _
)
public static void WarningIf(
    bool condition,
    string info
)
public:
static void WarningIf(
    bool condition, 
    String^ info
)
static member WarningIf : 
        condition:bool * 
        info:string -> unit
public static function WarningIf(
    condition : boolean, 
    info : String
)

Parameters

  • condition
    Type: System.Boolean

    The condition that causes the message to be written to the trace output, if true.

Remarks

Uses the General category and Warning level.

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

WarningIf Overload

Microsoft.TeamFoundation Namespace