Delen via


TeamFoundationTrace.InfoIf Method (Boolean, String, array<Object )

Conditionally write a 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, _
    format As String, _
    ParamArray args As Object() _
)
public static void InfoIf(
    bool condition,
    string format,
    params Object[] args
)
public:
static void InfoIf(
    bool condition, 
    String^ format, 
    ... array<Object^>^ args
)
static member InfoIf : 
        condition:bool * 
        format:string * 
        args:Object[] -> unit
public static function InfoIf(
    condition : boolean, 
    format : String, 
    ... args : Object[]
)

Parameters

  • condition
    Type: System.Boolean

    Condition that causes the message to be traced, if true.

  • format
    Type: System.String

    The string format to which args is applied.

Remarks

Uses General keyword, level Info

.NET Framework Security

See Also

Reference

TeamFoundationTrace Class

InfoIf Overload

Microsoft.TeamFoundation Namespace