共用方式為


TeamFoundationEventLogger.Log 方法 (TeamFoundationRequestContext, String, Int32, EventLogEntryType)

記錄一般訊息至事件記錄檔在 TeamFoundation EventSource 下

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public Shared Sub Log ( _
    requestContext As TeamFoundationRequestContext, _
    message As String, _
    eventId As Integer, _
    level As EventLogEntryType _
)
public static void Log(
    TeamFoundationRequestContext requestContext,
    string message,
    int eventId,
    EventLogEntryType level
)

參數

.NET Framework 安全性

請參閱

參考

TeamFoundationEventLogger 類別

Log 多載

Microsoft.TeamFoundation.Framework.Server 命名空間