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)