共用方式為


NotificationClass.NotificationClassProtocols Property

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

命名空間: Microsoft.SqlServer.Management.Nmo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
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

屬性值

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

備註

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.

範例

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)

執行緒安全性

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 的硬體和軟體需求>。

請參閱

參考

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

其他資源

定義通知類別
設定傳遞通訊協定
Protocols Element (ADF)