Share via


TeamFoundationEventLogger.LogException Method (TeamFoundationRequestContext, String, Exception)

Log an exception to the event log under the TeamFoundation EventSource Use the details from the exception to get the EventId and EventLogType

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Shared Sub LogException ( _
    requestContext As TeamFoundationRequestContext, _
    message As String, _
    exception As Exception _
)
public static void LogException(
    TeamFoundationRequestContext requestContext,
    string message,
    Exception exception
)
public:
static void LogException(
    TeamFoundationRequestContext^ requestContext, 
    String^ message, 
    Exception^ exception
)
static member LogException : 
        requestContext:TeamFoundationRequestContext * 
        message:string * 
        exception:Exception -> unit
public static function LogException(
    requestContext : TeamFoundationRequestContext, 
    message : String, 
    exception : Exception
)

Parameters

.NET Framework Security

See Also

Reference

TeamFoundationEventLogger Class

LogException Overload

Microsoft.TeamFoundation.Framework.Server Namespace