Linguaggio

ErrorSupport.FireError Metodo

Definizione

Solleva un errore.

Overload

Nome Descrizione
FireError(Int32, Boolean)

Genera un errore identificato dall'HRESULT specificato e permette di annullare l'esecuzione.

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

Genera un errore identificato dall'HRESULT specificato, lo associa al componente, file di aiuto e contesto di aiuto specificati, e consente di annullare l'esecuzione.

FireError(Int32, Boolean)

Genera un errore identificato dall'HRESULT specificato e permette di annullare l'esecuzione.

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)

Parametri

hResult
Int32

L'HRESULT dell'errore COM sottostante.

bCancel
Boolean

fedele all'annullamento dell'esecuzione; altrimenti, falso.

Si applica a

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

Genera un errore identificato dall'HRESULT specificato, lo associa al componente, file di aiuto e contesto di aiuto specificati, e consente di annullare l'esecuzione.

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)

Parametri

hResult
Int32

L'HRESULT dell'errore COM sottostante.

strSubComponent
String

Il nome amichevole del componente.

strHelpFile
String

Il file di aiuto che fornirà informazioni aggiuntive sui messaggi riportati.

HelpContext
Int32

La posizione nel file di aiuto che fornirà informazioni aggiuntive sui messaggi riportati.

bCancel
Boolean

fedele all'annullamento dell'esecuzione; altrimenti, falso.

Si applica a