共用方式為


TeamFoundationEventLog.LogException Method (TeamFoundationRequestContext, String, Exception, EventLogEntryType)

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

Syntax

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

Parameters

.NET Framework Security

See Also

Reference

TeamFoundationEventLog Class

LogException Overload

Microsoft.TeamFoundation.Framework.Server Namespace