共用方式為


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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

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

其他資源

定義事件類別的紀事輯
Chronicle Element for EventClass/Chronicles (ADF)