Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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 ErrorIf ( _
condition As Boolean, _
format As String, _
ParamArray args As Object() _
)
public static void ErrorIf(
bool condition,
string format,
params Object[] args
)
public:
static void ErrorIf(
bool condition,
String^ format,
... array<Object^>^ args
)
static member ErrorIf :
condition:bool *
format:string *
args:Object[] -> unit
public static function ErrorIf(
condition : boolean,
format : String,
... args : Object[]
)
Parameters
- condition
Type: System.Boolean
Condition that will cause the message to be written, if true.
- format
Type: System.String
The string format to which args is applied.
- args
Type: array<System.Object[]
One or more arguments.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.