DataAsyncCommandFailureEventHandler, délégué

Représente la méthode qui est appelée lorsqu'une commande asynchrone échoue.

Espace de noms :  Microsoft.VisualStudio.Data
Assembly :  Microsoft.VisualStudio.Data (dans Microsoft.VisualStudio.Data.dll)

Syntaxe

'Déclaration
Public Delegate Sub DataAsyncCommandFailureEventHandler ( _
    e As Exception, _
    nonFatal As Boolean _
)
public delegate void DataAsyncCommandFailureEventHandler(
    Exception e,
    bool nonFatal
)
public delegate void DataAsyncCommandFailureEventHandler(
    Exception^ e, 
    bool nonFatal
)
type DataAsyncCommandFailureEventHandler = 
    delegate of  
        e:Exception * 
        nonFatal:bool -> unit
JScript ne prend pas en charge les délégués.

Paramètres

  • e
    Type : Exception

    Exception qui se produit pour provoquer l'échec de commande.

  • nonFatal
    Type : Boolean

    Une indication si l'échec est récupérable ; autrement dit, que la commande continue à exécuter après cette méthode retourne.

Notes

Ce délégué est appelé lorsqu'un appel de méthode asynchrone est effectué vers un objet d' DataAsyncCommand et une erreur se produit.

Voir aussi

Référence

Microsoft.VisualStudio.Data, espace de noms