共用方式為


TeamFoundationApplication.LogException Method (TeamFoundationRequestContext, String, Exception, Int32, EventLogEntryType)

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

Syntax

'宣告
Public Shared Sub LogException ( _
    requestContext As TeamFoundationRequestContext, _
    message As String, _
    exception As Exception, _
    eventId As Integer, _
    level As EventLogEntryType _
)
public static void LogException(
    TeamFoundationRequestContext requestContext,
    string message,
    Exception exception,
    int eventId,
    EventLogEntryType level
)
public:
static void LogException(
    TeamFoundationRequestContext^ requestContext, 
    String^ message, 
    Exception^ exception, 
    int eventId, 
    EventLogEntryType level
)
static member LogException : 
        requestContext:TeamFoundationRequestContext * 
        message:string * 
        exception:Exception * 
        eventId:int * 
        level:EventLogEntryType -> unit 
public static function LogException(
    requestContext : TeamFoundationRequestContext, 
    message : String, 
    exception : Exception, 
    eventId : int, 
    level : EventLogEntryType
)

Parameters

.NET Framework Security

See Also

Reference

TeamFoundationApplication Class

LogException Overload

Microsoft.TeamFoundation.Framework.Server Namespace