TeamFoundationApplicationCore.LogException Method (String, Exception, Int32, EventLogEntryType)
Log an exception to the event log under the TeamFoundation EventSource
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Sub LogException ( _
message As String, _
exception As Exception, _
eventId As Integer, _
level As EventLogEntryType _
)
public static void LogException(
string message,
Exception exception,
int eventId,
EventLogEntryType level
)
public:
static void LogException(
String^ message,
Exception^ exception,
int eventId,
EventLogEntryType level
)
static member LogException :
message:string *
exception:Exception *
eventId:int *
level:EventLogEntryType -> unit
public static function LogException(
message : String,
exception : Exception,
eventId : int,
level : EventLogEntryType
)
Parameters
- message
Type: System.String
- exception
Type: System.Exception
- eventId
Type: System.Int32
- level
Type: System.Diagnostics.EventLogEntryType
.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.