EventClass Class

アプリケーションの任意のイベント クラスを表します。このクラスは、イベント クラスのメタデータにアクセスするときに使用します。イベント情報を 1 つのイベントにカプセル化するときに使用する Event クラスとは異なるため、混同しないようにする必要があります。このクラスは、Microsoft SQL Server 2005 では推奨されません。

名前空間: Microsoft.SqlServer.NotificationServices
アセンブリ: Microsoft.SqlServer.NotificationServices (microsoft.sqlserver.notificationservices.dll 内)

構文

'宣言
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("332C9281-3812-36FD-BA56-0093DA12394A")> _
<ComVisibleAttribute(True)> _
Public Class EventClass
    Implements IEventClass
[ClassInterfaceAttribute(ClassInterfaceType.None)] 
[GuidAttribute("332C9281-3812-36FD-BA56-0093DA12394A")] 
[ComVisibleAttribute(true)] 
public class EventClass : IEventClass
[ClassInterfaceAttribute(ClassInterfaceType::None)] 
[GuidAttribute(L"332C9281-3812-36FD-BA56-0093DA12394A")] 
[ComVisibleAttribute(true)] 
public ref class EventClass : IEventClass
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.None) */ 
/** @attribute GuidAttribute("332C9281-3812-36FD-BA56-0093DA12394A") */ 
/** @attribute ComVisibleAttribute(true) */ 
public class EventClass implements IEventClass
ClassInterfaceAttribute(ClassInterfaceType.None) 
GuidAttribute("332C9281-3812-36FD-BA56-0093DA12394A") 
ComVisibleAttribute(true) 
public class EventClass implements IEventClass

解説

SQL Server 2005 では、Notification Services インスタンスとアプリケーションを作成および管理するためのクラスは Microsoft.SqlServer.Management.Nmo 名前空間にあります。この EventClass クラスは、Notification Services の以前のバージョンとの互換性を維持する目的で含まれています。このクラスの代わりに、Microsoft.SqlServer.Management.Nmo.EventClass が使用されます。したがって、今後のリリースではサポートされなくなる可能性があります。

EventClass クラスを使用して、イベント クラスのメタデータにアクセスできます。1 つのイベントをアプリケーションに送信するためにカプセル化する際に使用する Event クラスとは異なるため、混同しないようにする必要があります。EventClass クラスには、指定されたイベント クラスに定義されたイベント フィールドに関する情報を取得するメソッドがあります。

EventClass クラスには、コンストラクタはありません。Item プロパティによって返される EventClass オブジェクトを使用します。

継承階層

System.Object
  Microsoft.SqlServer.NotificationServices.EventClass

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

EventClass Members
Microsoft.SqlServer.NotificationServices Namespace