Server.NotificationServices Property
Gets the Notification Services associated with the instance of Microsoft SQL Server.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
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
Valor de propiedad
A NotificationServices object that specifies the Notification Services associated with the instance of SQL Server.
Notas
Texto actualizado:
The NotificationServices property points to the NotificationServices class, which represents the Notification Services service on the instance of SQL Server.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Ejemplo
' 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
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
NotificationServices Class