Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Gets the Notification Services associated with the instance of Microsoft SQL Server.
Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
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
Valeur de propriété
A NotificationServices object that specifies the Notification Services associated with the instance of SQL Server.
Notes
Texte mis à jour :
The NotificationServices property points to the NotificationServices class, which represents the Notification Services service on the instance of SQL Server.
Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.
Exemple
' 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
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
NotificationServices Class