Share via


Server.NotificationServices Property

Gets the Notification Services associated with the instance of Microsoft SQL Server.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property NotificationServices As NotificationServices
public NotificationServices NotificationServices { get; }
public:
property NotificationServices^ NotificationServices {
    NotificationServices^ get ();
}
/** @property */
public NotificationServices get_NotificationServices ()
public function get NotificationServices () : NotificationServices

Valore proprietà

A NotificationServices object that specifies the Notification Services associated with the instance of SQL Server.

Osservazioni

Testo aggiornato:

The NotificationServices property points to the NotificationServices class, which represents the Notification Services service on the instance of SQL Server.

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

' Specify the Database Engine instance that hosts the 
' Notification Services instance and get a reference to 
' the NotificationServices object.
Dim server As New smo.Server("nsuetest")
Dim notificationServices As nmo.NotificationServices = _
    server.NotificationServices

' Get the Notification Services instance.
Dim nsinst As nmo.Instance = _
    notificationServices.Instances("Tutorial")

' Get the collection of delivery channels for the instance.
Dim dcCollection As nmo.DeliveryChannelCollection = _
    nsinst.DeliveryChannels

' Enumerate the delivery channels.
Dim dc As nmo.DeliveryChannel
For Each dc In dcCollection
    Console.WriteLine(dc.Name)
Next

Thread Safety

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.

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

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
NotificationServices Class

Altre risorse

Setting Properties
Gestione dei server