Compartir a través de


NotificationClassProtocol.FailureEventLogInterval Property

Gets or sets the amount of time that must pass between writes to the event log, regardless of how many failures occur.

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property FailureEventLogInterval As TimeSpan
public TimeSpan FailureEventLogInterval { get; set; }
public:
property TimeSpan FailureEventLogInterval {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_FailureEventLogInterval ()

/** @property */
public void set_FailureEventLogInterval (TimeSpan value)
public function get FailureEventLogInterval () : TimeSpan

public function set FailureEventLogInterval (value : TimeSpan)

Valor de propiedad

A TimeSpan object specifying the logging interval.

Notas

The FailureEventLogInterval property works in conjunction with the FailuresBeforeEventLog property to allow you to configure the error logging to fit the needs of your application and to prevent excessive messages in the 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

FailureEventLogInterval Element (ADF)
Especificar configuraciones de ejecución de protocolo de entrega
Configurar protocolos de entrega