Delen via


TeamFoundationTrace.InfoIf Method (Boolean, String)

Conditionally write an informational message to the trace output.

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

Syntax

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

Parameters

  • condition
    Type: System.Boolean

    The condition that causes the message to be traced, if true.

Remarks

Uses General keyword, level Info

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

InfoIf Overload

Microsoft.TeamFoundation Namespace