TeamFoundationEventLog.LogException Method (TeamFoundationRequestContext, String, Exception, Int32, EventLogEntryType)
See overload.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub LogException ( _
requestContext As TeamFoundationRequestContext, _
message As String, _
exception As Exception, _
eventId As Integer, _
level As EventLogEntryType _
)
public void LogException(
TeamFoundationRequestContext requestContext,
string message,
Exception exception,
int eventId,
EventLogEntryType level
)
public:
void LogException(
TeamFoundationRequestContext^ requestContext,
String^ message,
Exception^ exception,
int eventId,
EventLogEntryType level
)
member LogException :
requestContext:TeamFoundationRequestContext *
message:string *
exception:Exception *
eventId:int *
level:EventLogEntryType -> unit
public function LogException(
requestContext : TeamFoundationRequestContext,
message : String,
exception : Exception,
eventId : int,
level : EventLogEntryType
)
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- 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.