次の方法で共有


NotificationStatus Constructor (NotificationState, Boolean, String, String)

NotificationState オブジェクト、配信成功を示す値、状態情報、およびフォーマット済み通知データを使用して、NotificationStatus クラスの新しいインスタンスを初期化します。タイムスタンプは、未定義になります。

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

構文

'宣言
Public Sub New ( _
    notificationState As NotificationState, _
    succeeded As Boolean, _
    statusInfo As String, _
    notificationText As String _
)
public NotificationStatus (
    NotificationState notificationState,
    bool succeeded,
    string statusInfo,
    string notificationText
)
public:
NotificationStatus (
    NotificationState^ notificationState, 
    bool succeeded, 
    String^ statusInfo, 
    String^ notificationText
)
public NotificationStatus (
    NotificationState notificationState, 
    boolean succeeded, 
    String statusInfo, 
    String notificationText
)
public function NotificationStatus (
    notificationState : NotificationState, 
    succeeded : boolean, 
    statusInfo : String, 
    notificationText : String
)

パラメータ

  • notificationState
    配信状態情報をディストリビュータが正しく解釈するために必要な通知情報が格納されている NotificationState オブジェクトです。NotificationState オブジェクトは、DeliverNotification メソッドで NotificationHeaders オブジェクトの一部として配信プロトコルに渡されます。notificationState には NULL を使用できません。
  • succeeded
    通知が正常に配信されたかどうかを示すブール値です。必要ない場合は NULL を使用できます。
  • statusInfo
    追加の通知の状態情報を表す String です。配信プロトコルに追加の状態情報がない場合には、NULL または長さがゼロの文字列を使用できます。
  • notificationText
    配信プロトコルが配信しようとしたフォーマット済み通知データを表す String です。必要ない場合は、NULL または長さがゼロの文字列を使用できます。

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

NotificationStatus Class
NotificationStatus Members
Microsoft.SqlServer.NotificationServices Namespace