Megosztás a következőn keresztül:


TeamFoundationEventLog Class

Team Foundation Log class.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationEventLog

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

Syntax

'Declaration
Public NotInheritable Class TeamFoundationEventLog
public sealed class TeamFoundationEventLog
public ref class TeamFoundationEventLog sealed
[<Sealed>]
type TeamFoundationEventLog =  class end
public final class TeamFoundationEventLog

The TeamFoundationEventLog type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationEventLog(String) See overload.
Public method TeamFoundationEventLog(String, Assembly) Create an instance of the Team Foundation log.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Log(TeamFoundationRequestContext, String) Log a message as type Information.
Public method Log(TeamFoundationRequestContext, String, EventLogEntryType) Log a message that has a default event.
Public method Log(TeamFoundationRequestContext, String, Int32) Log a message that has a default event.
Public method Log(TeamFoundationRequestContext, String, Int32, EventLogEntryType) Write an entry to the system event log.
Public method Log(TeamFoundationRequestContext, String, String, Int32, EventLogEntryType) Write an entry to the system event log with a custom eventlog message header.
Public method LogException(TeamFoundationRequestContext, String, Exception) See overload.
Public method LogException(TeamFoundationRequestContext, String, Exception, EventLogEntryType) See overload.
Public method LogException(TeamFoundationRequestContext, String, Exception, Int32) See overload.
Public method LogException(TeamFoundationRequestContext, String, Exception, Int32, EventLogEntryType) See overload.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This class is sealed—all Team Foundation logging functionality should be added to this class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace