NotificationClassProtocol.FailuresBeforeAbort Property
Gets or sets the number of consecutive notification delivery failures that can occur when attempting to deliver notifications within a distributor work item before the attempt is aborted and an error is reported to the event log.
Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public Property FailuresBeforeAbort As Integer
public int FailuresBeforeAbort { get; set; }
public:
property int FailuresBeforeAbort {
int get ();
void set (int value);
}
/** @property */
public int get_FailuresBeforeAbort ()
/** @property */
public void set_FailuresBeforeAbort (int value)
public function get FailuresBeforeAbort () : int
public function set FailuresBeforeAbort (value : int)
Valor de propiedad
An Int32 value that specifies the number of failures before canceling additional delivery attempts.
Notas
This property is optional and has a default value of 20.
The distributor stops attempting to deliver notifications within the work item after the configured failure limit. If there is a retry schedule, the distributor picks up the work item at the next retry interval and retry both the failed notifications and those that were never attempted.
Ejemplo
The following examples show how to define execution settings for a delivery protocol:
smtpProtocol.FailuresBeforeEventLog = 2;
smtpProtocol.FailureEventLogInterval = new TimeSpan(0, 10, 0);
smtpProtocol.FailuresBeforeAbort = 10;
smtpProtocol.MulticastRecipientLimit = 50;
smtpProtocol.WorkItemTimeout = new TimeSpan(0, 20, 0);
smtpProtocol.FailuresBeforeEventLog = 2
smtpProtocol.FailureEventLogInterval = New TimeSpan(0, 10, 0)
smtpProtocol.FailuresBeforeAbort = 10
smtpProtocol.MulticastRecipientLimit = 50
smtpProtocol.WorkItemTimeout = New TimeSpan(0, 20, 0)
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
NotificationClassProtocol Class
NotificationClassProtocol Members
Microsoft.SqlServer.Management.Nmo Namespace
Otros recursos
FailuresBeforeAbort Element (ADF)
Configurar protocolos de entrega
Especificar configuraciones de ejecución de protocolo de entrega