Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Disposes of a EventLoader.
Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
Syntaxe
'Déclaration
Public Sub Dispose
public void Dispose ()
public:
void Dispose ()
public void Dispose ()
public function Dispose ()
Notes
Calling this method releases all resources allocated for the EventLoader and leaves it unusable.
Exemple
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();
}
Sécurité des threads
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.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
EventLoader Class
EventLoader Members
Microsoft.SqlServer.NotificationServices Namespace