Condividi tramite


NotificationStatus Constructor (NotificationState, Boolean, String, String, DateTime)

Initializes a new instance of the NotificationStatus class with a NotificationState object, a delivery success value, status information, the formatted notification data, and a delivery timestamp.

Spazio dei nomi: Microsoft.SqlServer.NotificationServices
Assembly : Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintassi

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

Parametri

  • notificationState
    A NotificationState object that contains notification information needed by the distributor to correctly interpret the delivery status information. The NotificationState object is passed to the delivery protocol in the DeliverNotification method as part of the NotificationHeaders object. The notificationState cannot be null.
  • succeeded
    A Boolean value that indicates whether the notification was successfully delivered. Can be null if not required.
  • statusInfo
    A String containing any additional notification status information. Can be null or a zero-length string if the delivery protocol has no additional status information to provide.
  • notificationText
    A String containing the formatted notification data that the delivery protocol tried to deliver. Can be null or a zero-length string if the value is not required.
  • timestamp
    A DateTime object specifying the delivery timestamp for the notification.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

NotificationStatus Class
NotificationStatus Members
Microsoft.SqlServer.NotificationServices Namespace