Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
SqlNotificationRequest Class

Represents a request for notification for a given command.

System..::.Object
  System.Data.Sql..::.SqlNotificationRequest

Namespace:  System.Data.Sql
Assembly:  System.Data (in System.Data.dll)
Visual Basic
Public NotInheritable Class SqlNotificationRequest
C#
public sealed class SqlNotificationRequest
Visual C++
public ref class SqlNotificationRequest sealed
F#
[<Sealed>]
type SqlNotificationRequest =  class end

The SqlNotificationRequest type exposes the following members.

  NameDescription
Public methodSqlNotificationRequest()()()Creates a new instance of the SqlNotificationRequest class with default values.
Public methodSqlNotificationRequest(String, String, Int32)Creates a new instance of the SqlNotificationRequest class with a user-defined string that identifies a particular notification request, the name of a predefined SQL Server 2005 Service Broker service name, and the time-out period, measured in seconds.
Top
  NameDescription
Public propertyOptionsGets or sets the SQL Server Service Broker service name where notification messages are posted.
Public propertyTimeoutGets or sets a value that specifies how long SQL Server waits for a change to occur before the operation times out.
Public propertyUserDataGets or sets an application-specific identifier for this notification.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Biblioteca de clases de .NET Framework
SqlNotificationRequest (Clase)

Representa una solicitud de notificación para un comando determinado.

System..::.Object
  System.Data.Sql..::.SqlNotificationRequest

Espacio de nombres:  System.Data.Sql
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
Public NotInheritable Class SqlNotificationRequest
C#
public sealed class SqlNotificationRequest
Visual C++
public ref class SqlNotificationRequest sealed
F#
[<Sealed>]
type SqlNotificationRequest =  class end

El tipo SqlNotificationRequest expone los siguientes miembros.

  NombreDescripción
Método públicoSqlNotificationRequest()()()Crea una nueva instancia de la clase SqlNotificationRequest con valores predeterminados.
Método públicoSqlNotificationRequest(String, String, Int32)Crea una nueva instancia de la clase SqlNotificationRequest con una cadena definida por el usuario que identifica una solicitud de notificación concreta, el nombre de un servicio Service Broker de SQL Server 2005 predefinido y el tiempo de espera medido en segundos.
Arriba
  NombreDescripción
Propiedad públicaOptionsObtiene o establece el nombre del servicio Service Broker de SQL Server donde se publican los mensajes.
Propiedad públicaTimeoutObtiene o establece un valor que especifica cuánto tiempo aguarda SQL Server a que se produzca un cambio antes de que se agote el tiempo de espera de la operación.
Propiedad públicaUserDataObtiene o establece un identificador específico de la aplicación para esta notificación.
Arriba
  NombreDescripción
Método públicoEquals(Object)Determina si el objeto Object especificado es igual al objeto Object actual. (Se hereda de Object).
Método protegidoFinalizePermite que un objeto intente liberar recursos y realizar otras operaciones de limpieza antes de ser reclamado por la recolección de elementos no utilizados. (Se hereda de Object).
Método públicoGetHashCodeActúa como función hash para un tipo concreto. (Se hereda de Object).
Método públicoGetTypeObtiene el objeto Type de la instancia actual. (Se hereda de Object).
Método protegidoMemberwiseCloneCrea una copia superficial del objeto Object actual. (Se hereda de Object).
Método públicoToStringDevuelve una cadena que representa el objeto actual. (Se hereda de Object).
Arriba

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.

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

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.
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.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker