NotificationClassProtocol.FailuresBeforeEventLog Property
Gets or sets the number of consecutive work item delivery failures that can occur before reporting an error to the Application event log.
Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public Property FailuresBeforeEventLog As Integer
public int FailuresBeforeEventLog { get; set; }
public:
property int FailuresBeforeEventLog {
int get ();
void set (int value);
}
/** @property */
public int get_FailuresBeforeEventLog ()
/** @property */
public void set_FailuresBeforeEventLog (int value)
public function get FailuresBeforeEventLog () : int
public function set FailuresBeforeEventLog (value : int)
Valor de propiedad
An Int32 value that specifies the number of failures before logging an event in the Application event log.
Notas
This property is optional and has a default value of 1.
The FailuresBeforeEventLog property works in conjunction with the FailureEventLogInterval property to allow you to configure error logging to fit the needs of your application and to prevent excessive messages in the Application event log.
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
FailuresBeforeLoggingEvent Element (ADF)
Especificar configuraciones de ejecución de protocolo de entrega
Configurar protocolos de entrega