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, _
info As String _
)
public static void ErrorIf(
bool condition,
string info
)
public:
static void ErrorIf(
bool condition,
String^ info
)
static member ErrorIf :
condition:bool *
info:string -> unit
public static function ErrorIf(
condition : boolean,
info : String
)
Parameters
- condition
Type: System.Boolean
Condition that will cause the message to be written, if true.
- info
Type: System.String
The text message to write to the trace output.
.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.