Freigeben über


NotificationClass.NotificationClassProtocols Property

Gets the collection of delivery protocols used by the notification class.

Namespace: Microsoft.SqlServer.Management.Nmo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public ReadOnly Property NotificationClassProtocols As NotificationClassProtocolCollection
public NotificationClassProtocolCollection NotificationClassProtocols { get; }
public:
property NotificationClassProtocolCollection^ NotificationClassProtocols {
    NotificationClassProtocolCollection^ get ();
}
/** @property */
public NotificationClassProtocolCollection get_NotificationClassProtocols ()
public function get NotificationClassProtocols () : NotificationClassProtocolCollection

Eigenschaftswert

A NotificationClassProtocolCollection object that represents the delivery protocols for the notification class.

Hinweise

The NotificationClassProtocolCollection contains one or more delivery protocols used by the notification class. Each notification class must have at least one delivery protocol used to deliver notifications.

If you add or delete a Protocols element, updating the application deletes and re-creates the notification class to which it corresponds. This includes dropping and re-creating the Microsoft SQL Server tables used by this notification class. Any data existing in the original SQL Server tables is permanently deleted.

Beispiel

The following examples show how to define a File delivery protocol and add it to the collection of delivery protocols for a notification class:

flightNotifications.NotificationClassProtocols.Add(fileProtocol);
flightNotifications.NotificationClassProtocols.Add(fileProtocol)

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

NotificationClass Class
NotificationClass Members
Microsoft.SqlServer.Management.Nmo Namespace

Andere Ressourcen

Definieren von Benachrichtigungsklassen
Konfigurieren von Übermittlungsprotokollen
Protocols Element (ADF)