Disposes of a EventLoader.
命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
語法
'宣告
Public Sub Dispose
public void Dispose ()
public:
void Dispose ()
public void Dispose ()
public function Dispose ()
備註
Calling this method releases all resources allocated for the EventLoader and leaves it unusable.
範例
The following examples show how to use the Dispose method to dispose of an EventLoader:
Try
'Add code to process event information here.
Catch e As System.Exception
'Add code to handle errors here.
Finally
'Dispose of the EventLoader object.
myEventLoader.Dispose()
End Try
try
{
//Add code to process event information here.
}
catch (System.Exception e)
{
//Add code to handle errors here.
}
finally
{
//Dispose of the EventLoader object.
myEventLoader.Dispose();
}
執行緒安全性
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 的硬體和軟體需求>。
請參閱
參考
EventLoader Class
EventLoader Members
Microsoft.SqlServer.NotificationServices Namespace