.NET Framework Class Library SqlNotificationRequest Class Represents a request for notification for a given command.

Inheritance Hierarchy
Namespace:
System.Data.Sql
Assembly:
System.Data (in System.Data.dll)

Syntax
Public NotInheritable Class SqlNotificationRequest
public sealed class SqlNotificationRequest
public ref class SqlNotificationRequest sealed
[<Sealed>]
type SqlNotificationRequest = class end
The SqlNotificationRequest type exposes the following members.

Methods

Remarks
This class provides low-level access to the query notification services exposed by SQL Server 2005. For most applications the SqlDependency class provides a simpler way of using query notifications. However, if you need fine control over when notifications occur, or you need to customize the message data returned as part of a notification, the SqlNotificationRequest class is the one to use.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileSupported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Biblioteca de clases de .NET Framework SqlNotificationRequest (Clase) Representa una solicitud de notificación para un comando determinado.

Jerarquía de herencia
Espacio de nombres:
System.Data.Sql
Ensamblado:
System.Data (en System.Data.dll)

Sintaxis
Public NotInheritable Class SqlNotificationRequest
public sealed class SqlNotificationRequest
public ref class SqlNotificationRequest sealed
[<Sealed>]
type SqlNotificationRequest = class end
El tipo SqlNotificationRequest expone los siguientes miembros.

Comentarios
Esta clase proporciona el acceso de bajo nivel a los servicios de notificación de consulta expuestos por SQL Server 2005. Para la mayoría de las aplicaciones la clase SqlDependency proporciona una más fácil manera de usar las notificaciones de la consulta. Sin embargo, si necesita controlar con precisión cuándo se producen las notificaciones o si tiene que personalizar los datos del mensaje que se devuelve como elemento de una notificación, la clase que le interesa utilizar es SqlNotificationRequest.

Información de versión
.NET FrameworkCompatible con: 4, 3.5, 3.0, 2.0 .NET Framework Client ProfileCompatible con: 4, 3.5 SP1

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Seguridad para subprocesos
Todos los miembros static ( Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Vea también
|