Compartilhar via


Método ErrorSupport.FireWarning (Int32, String, String, Int32)

Raises a warning identified by the specified HRESULT and associates it with the specified component, help file, and help context.

Namespace:  Microsoft.SqlServer.Dts.ManagedMsg
Assembly:  Microsoft.SqlServer.DtsMsg (em Microsoft.SqlServer.DtsMsg.dll)

Sintaxe

'Declaração
Public Sub FireWarning ( _
    hResult As Integer, _
    strSubComponent As String, _
    strHelpFile As String, _
    HelpContext As Integer _
)
'Uso
Dim instance As ErrorSupport 
Dim hResult As Integer 
Dim strSubComponent As String 
Dim strHelpFile As String 
Dim HelpContext As Integer

instance.FireWarning(hResult, strSubComponent, _
    strHelpFile, HelpContext)
public void FireWarning(
    int hResult,
    string strSubComponent,
    string strHelpFile,
    int HelpContext
)
public:
void FireWarning(
    int hResult, 
    String^ strSubComponent, 
    String^ strHelpFile, 
    int HelpContext
)
member FireWarning : 
        hResult:int * 
        strSubComponent:string * 
        strHelpFile:string * 
        HelpContext:int -> unit
public function FireWarning(
    hResult : int, 
    strSubComponent : String, 
    strHelpFile : String, 
    HelpContext : int
)

Parâmetros

  • hResult
    Tipo: System.Int32
    The HRESULT of the underlying COM error.
  • strSubComponent
    Tipo: System.String
    The friendly name of the component.
  • strHelpFile
    Tipo: System.String
    The help file that provides additional information about the messages that are raised.
  • HelpContext
    Tipo: System.Int32
    The location in the help file that provides additional information about the messages that are raised.

Consulte também

Referência

ErrorSupport Classe

Sobrecarregado FireWarning

Namespace Microsoft.SqlServer.Dts.ManagedMsg