Formats an exception and writes it as an error message to the trace.
Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Sub Error ( _
    exception As Exception _
)
public void Error(
    Exception exception
)
public:
virtual void Error(
    Exception^ exception
) sealed
abstract Error : 
        exception:Exception -> unit  
override Error : 
        exception:Exception -> unit
public final function Error(
    exception : Exception
)
Parameters
- exception 
 Type: System.Exception- An exception to write to the trace. Null is allowed. 
Implements
.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.