TeamFoundationTrace.Error Method (String, Exception)
Write an exception to the trace output.
Namespace: Microsoft.TeamFoundation
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Sub Error ( _
info As String, _
exception As Exception _
)
public static void Error(
string info,
Exception exception
)
public:
static void Error(
String^ info,
Exception^ exception
)
static member Error :
info:string *
exception:Exception -> unit
public static function Error(
info : String,
exception : Exception
)
Parameters
info
Type: System.StringThe message giving exception context.
exception
Type: System.ExceptionThe exception to write.
Remarks
Uses the General category and Error level.
.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.