共用方式為


Event Class

Represents a single event.

命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

語法

'宣告
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9")> _
<DefaultMemberAttribute("Item")> _
Public Class Event
    Implements IEvent
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9")] 
[DefaultMemberAttribute("Item")] 
public class Event : IEvent
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
[GuidAttribute(L"CC6F9519-07C9-39CA-8D88-32440AD326A9")] 
[DefaultMemberAttribute(L"Item")] 
public ref class Event : IEvent
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9") */ 
/** @attribute DefaultMemberAttribute("Item") */ 
public class Event implements IEvent
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.None) 
GuidAttribute("CC6F9519-07C9-39CA-8D88-32440AD326A9") 
DefaultMemberAttribute("Item") 
public class Event implements IEvent

備註

The Event object encapsulates the event data for a single event. A reference to the Event object is passed to an EventCollector object, which writes the data to the application database.

For examples of the Event class, see 使用 Managed 事件提交 API.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.NotificationServices.Event

執行緒安全性

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

平台

開發平台

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

目標平台

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

請參閱

參考

Event Members
Microsoft.SqlServer.NotificationServices Namespace