Freigeben über


EventChronicle Constructor (EventClass, String)

Initializes a new EventChronicle with an EventClass object and a name.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New ( _
    eventClass As EventClass, _
    name As String _
)
public EventChronicle (
    EventClass eventClass,
    string name
)
public:
EventChronicle (
    EventClass^ eventClass, 
    String^ name
)
public EventChronicle (
    EventClass eventClass, 
    String name
)
public function EventChronicle (
    eventClass : EventClass, 
    name : String
)

Parameter

  • name
    A String, up to 255 characters in length, containing the logical name of the event chronicle.

    You cannot change the name. To rename an event chronicle, you must remove it and then add a new event chronicle that has the new name.

Hinweise

Each event chronicle is for a specific event class. The logical name of the event chronicle is only used to refer to the chronicle. You provide a table name when you define the event chronicle table in the SqlStatements.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

EventChronicle Class
EventChronicle Members
Microsoft.SqlServer.Management.Nmo Namespace

Andere Ressourcen

Definieren von Verläufen für eine Ereignisklasse
Chronicle Element for EventClass/Chronicles (ADF)