Partager via


Méthode ErrorSupport.FireError (Int32, Boolean%)

Raises an error identified by the specified HRESULT and allows execution to be cancelled.

Espace de noms :  Microsoft.SqlServer.Dts.ManagedMsg
Assembly :  Microsoft.SqlServer.DtsMsg (en Microsoft.SqlServer.DtsMsg.dll)

Syntaxe

'Déclaration
Public Sub FireError ( _
    hResult As Integer, _
    <OutAttribute> ByRef bCancel As Boolean _
)
'Utilisation
Dim instance As ErrorSupport 
Dim hResult As Integer 
Dim bCancel As Boolean

instance.FireError(hResult, bCancel)
public void FireError(
    int hResult,
    out bool bCancel
)
public:
void FireError(
    int hResult, 
    [OutAttribute] bool% bCancel
)
member FireError : 
        hResult:int * 
        bCancel:bool byref -> unit
public function FireError(
    hResult : int, 
    bCancel : boolean
)

Paramètres

  • hResult
    Type : System.Int32
    The HRESULT of the underlying COM error.
  • bCancel
    Type : System.Boolean%
    true to cancel execution; otherwise, false.

Voir aussi

Référence

ErrorSupport Classe

Surcharge FireError

Espace de noms Microsoft.SqlServer.Dts.ManagedMsg