Поделиться через


EventChronicle Constructor (EventClass, String)

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

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
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
)

Параметры

  • 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.

Замечания

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Определение хроники для класса событий
Chronicle Element for EventClass/Chronicles (ADF)