IScheduledEventProvider.Terminate Method
Terminates the event provider.
命名空间: Microsoft.SqlServer.NotificationServices
程序集: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
语法
声明
Sub Terminate
void Terminate ()
void Terminate ()
void Terminate ()
function Terminate ()
备注
When the provider host calls 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.
示例
For an example of how to implement the Terminate method, see the IScheduledEventProvider topic.
线程安全
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.
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
IScheduledEventProvider Interface
IScheduledEventProvider Members
Microsoft.SqlServer.NotificationServices Namespace