Condividi tramite


IEventProvider.Terminate Method

Stops and disables the event provider.

Spazio dei nomi: Microsoft.SqlServer.NotificationServices
Assembly : Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintassi

'Dichiarazione
Sub Terminate
void Terminate ()
void Terminate ()
void Terminate ()
function Terminate ()

Osservazioni

The provider host calls this method to stop and disable the event provider.

In the Terminate method, the event provider must stop collecting new events, write any pending events to the application database, release any resources it is holding, and return from the Terminate method call.

If the event provider does not return from the Terminate method call within one minute, the provider host stops the event provider unconditionally.

If the Terminate method fails to handle an exception, the provider host logs the unhandled error, and the event provider is terminated.

To start collecting events again, enable the event provider.

Esempio

For an example of how to implement the Terminate method, see the IEventProvider topic.

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

IEventProvider Interface
IEventProvider Members
Microsoft.SqlServer.NotificationServices Namespace