Méthode FireError (Int32, String, String, Int32, Boolean)

Raises an error identified by the specified HRESULT, associates it with the specified component, help file, and help context, 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, _
    strSubComponent As String, _
    strHelpFile As String, _
    HelpContext As Integer, _
    <OutAttribute> ByRef bCancel As Boolean _
)
'Utilisation
Dim instance As ErrorSupport
Dim hResult As Integer
Dim strSubComponent As String
Dim strHelpFile As String
Dim HelpContext As Integer
Dim bCancel As Boolean

instance.FireError(hResult, strSubComponent, _
    strHelpFile, HelpContext, bCancel)
public void FireError(
    int hResult,
    string strSubComponent,
    string strHelpFile,
    int HelpContext,
    out bool bCancel
)
public:
void FireError(
    int hResult, 
    String^ strSubComponent, 
    String^ strHelpFile, 
    int HelpContext, 
    [OutAttribute] bool% bCancel
)
member FireError : 
        hResult:int * 
        strSubComponent:string * 
        strHelpFile:string * 
        HelpContext:int * 
        bCancel:bool byref -> unit 
public function FireError(
    hResult : int, 
    strSubComponent : String, 
    strHelpFile : String, 
    HelpContext : int, 
    bCancel : boolean
)

Paramètres

  • strHelpFile
    Type : System. . :: . .String
    The help file that will provide additional information about the messages that are raised.
  • HelpContext
    Type : System. . :: . .Int32
    The location in the help file that will provide additional information about the messages that are raised.