Classe ErrorSupport

Supports the raising of errors, warnings, and other events that include descriptive text for known COM HRESULTs that are returned by Integration Services components written in native code.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Dts.ManagedMsg.ErrorSupport
    Microsoft.SqlServer.Dts.ManagedMsg.DataflowErrorSupport

Spazio dei nomi  Microsoft.SqlServer.Dts.ManagedMsg
Assembly:  Microsoft.SqlServer.DtsMsg (in Microsoft.SqlServer.DtsMsg.dll)

Sintassi

'Dichiarazione
<ComVisibleAttribute(False)> _
Public Class ErrorSupport
'Utilizzo
Dim instance As ErrorSupport
[ComVisibleAttribute(false)]
public class ErrorSupport
[ComVisibleAttribute(false)]
public ref class ErrorSupport
[<ComVisibleAttribute(false)>]
type ErrorSupport =  class end
public class ErrorSupport

Nel tipo ErrorSupport sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico ErrorSupport(IDTSComponentEvents100) Initializes a new instance of the ErrorSupport class.
Metodo protetto ErrorSupport(IDTSComponentMetaData100) Initializes a new instance of the ErrorSupport class.
Metodo pubblico ErrorSupport(IDTSInfoEvents100) Initializes a new instance of the ErrorSupport class.
Metodo pubblico ErrorSupport(IDTSComponentEvents100, String, String, Int32) Initializes a new instance of the ErrorSupport class.
Metodo protetto ErrorSupport(IDTSComponentMetaData100, String, String, Int32) Initializes a new instance of the ErrorSupport class.
Metodo pubblico ErrorSupport(IDTSInfoEvents100, String, String, Int32) Initializes a new instance of the ErrorSupport class.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico FireError(Int32, Boolean%) Raises an error identified by the specified HRESULT and allows execution to be cancelled.
Metodo pubblico 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.
Metodo pubblico FireErrorWithArgs(Int32, Boolean%, array<Object[]) Raises an error identified by the specified HRESULT, allows execution to be cancelled, and includes an optional array of user-defined objects or information.
Metodo pubblico FireErrorWithArgs(Int32, String, String, Int32, Boolean%, array<Object[]) Raises an error identified by the specified HRESULT, associates it with the specified component, help file, and help context, allows execution to be cancelled, and includes an optional array of user-defined objects or information.
Metodo pubblico FireInformation(Int32, Boolean%) Raises an informational message about the specified HRESULT and allows execution to be cancelled.
Metodo pubblico FireInformation(Int32, String, String, Int32, Boolean%) Raises an informational message about the specified HRESULT, associates it with the specified component, help file, and help context, and allows execution to be cancelled.
Metodo pubblico FireInformationWithArgs(Int32, Boolean%, array<Object[]) Raises an informational message about the specified HRESULT, allows execution to be cancelled, and includes an optional array of user-defined objects or information.
Metodo pubblico FireInformationWithArgs(Int32, String, String, Int32, Boolean%, array<Object[]) Raises an informational message about the specified HRESULT, associates it with the specified component, help file, and help context, allows execution to be cancelled, and includes an optional array of user-defined objects or information.
Metodo pubblico FireWarning(Int32) Raises a warning identified by the specified HRESULT and allows execution to be cancelled.
Metodo pubblico 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.
Metodo pubblico FireWarningWithArgs(Int32, array<Object[]) Raises a warning identified by the specified HRESULT and includes an optional array of user-defined objects or information.
Metodo pubblico FireWarningWithArgs(Int32, String, String, Int32, array<Object[]) Raises a warning identified by the specified HRESULT, associates it with the specified component, help file, and help context, and includes an optional array of user-defined objects or information.
Metodo pubblico GetFormattedMessage Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
Metodo pubblicoMembro statico GetFormattedMessageEx Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto SetErrorInterface(IDTSComponentEvents100) Specifies the IDTSComponentEvents100 instance that the ErrorSupport class will use to raise messages.
Metodo protetto SetErrorInterface(IDTSComponentMetaData100) Specifies the IDTSComponentMetadata100 instance that the ErrorSupport class will use to raise messages.
Metodo protetto SetErrorInterface(IDTSInfoEvents100) Specifies the IDTSInfoEvents100 instance that the ErrorSupport class will use to raise messages.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

Although the data flow component developer can raise errors, warnings, and other events by calling the Fire<X> methods of the IDTSComponentMetaData100 interface, the Fire<X> methods of the ErrorSupport class provide additional value by retrieving descriptive messages that correspond to known COM HRESULTs returned by Integration Services components written in native code. Use the ErrorSupport property of the PipelineComponent base class to obtain an ErrorSupport object for this purpose.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Dts.ManagedMsg