Share via


ErrorSupport.FireError Méthode

Définition

Génère une erreur.

Surcharges

FireError(Int32, Boolean)

Génère une erreur identifiée par la valeur HRESULT spécifiée et autorise l'annulation de l'exécution.

FireError(Int32, String, String, Int32, Boolean)

Génère une erreur identifiée par la valeur HRESULT spécifiée, l'associe au composant, au fichier d'aide et au contexte d'aide spécifiés et autorise l'annulation de l'exécution.

FireError(Int32, Boolean)

Génère une erreur identifiée par la valeur HRESULT spécifiée et autorise l'annulation de l'exécution.

public:
 void FireError(int hResult, [Runtime::InteropServices::Out] bool % bCancel);
public void FireError (int hResult, out bool bCancel);
member this.FireError : int * bool -> unit
Public Sub FireError (hResult As Integer, ByRef bCancel As Boolean)

Paramètres

hResult
Int32

HRESULT de l'erreur COM sous-jacente.

bCancel
Boolean

true pour annuler l’exécution ; sinon, false.

S’applique à

FireError(Int32, String, String, Int32, Boolean)

Génère une erreur identifiée par la valeur HRESULT spécifiée, l'associe au composant, au fichier d'aide et au contexte d'aide spécifiés et autorise l'annulation de l'exécution.

public:
 void FireError(int hResult, System::String ^ strSubComponent, System::String ^ strHelpFile, int HelpContext, [Runtime::InteropServices::Out] bool % bCancel);
public void FireError (int hResult, string strSubComponent, string strHelpFile, int HelpContext, out bool bCancel);
member this.FireError : int * string * string * int * bool -> unit
Public Sub FireError (hResult As Integer, strSubComponent As String, strHelpFile As String, HelpContext As Integer, ByRef bCancel As Boolean)

Paramètres

hResult
Int32

HRESULT de l'erreur COM sous-jacente.

strSubComponent
String

Nom convivial du composant.

strHelpFile
String

Fichier d'aide qui fournira des informations supplémentaires à propos des messages générés.

HelpContext
Int32

Emplacement dans le fichier d'aide qui fournira des informations supplémentaires à propos des messages générés.

bCancel
Boolean

true pour annuler l’exécution ; sinon, false.

S’applique à