Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ErrorSupport Class

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.

Namespace:  Microsoft.SqlServer.Dts.ManagedMsg
Assembly:  Microsoft.SqlServer.DtsMsg (in Microsoft.SqlServer.DtsMsg.dll)
[ComVisibleAttribute(false)]
public class ErrorSupport

The ErrorSupport type exposes the following members.

  NameDescription
Public methodErrorSupport(IDTSComponentEvents100)Initializes a new instance of the ErrorSupport class.
Protected methodErrorSupport(IDTSComponentMetaData100)Initializes a new instance of the ErrorSupport class.
Public methodErrorSupport(IDTSInfoEvents100)Initializes a new instance of the ErrorSupport class.
Public methodErrorSupport(IDTSComponentEvents100, String, String, Int32)Initializes a new instance of the ErrorSupport class.
Protected methodErrorSupport(IDTSComponentMetaData100, String, String, Int32)Initializes a new instance of the ErrorSupport class.
Public methodErrorSupport(IDTSInfoEvents100, String, String, Int32)Initializes a new instance of the ErrorSupport class.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFireError(Int32, Boolean)Raises an error identified by the specified HRESULT and allows execution to be cancelled.
Public methodFireError(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.
Public methodFireErrorWithArgs(Int32, Boolean, 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.
Public methodFireErrorWithArgs(Int32, String, String, Int32, Boolean, 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.
Public methodFireInformation(Int32, Boolean)Raises an informational message about the specified HRESULT and allows execution to be cancelled.
Public methodFireInformation(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.
Public methodFireInformationWithArgs(Int32, Boolean, 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.
Public methodFireInformationWithArgs(Int32, String, String, Int32, Boolean, 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.
Public methodFireWarning(Int32)Raises a warning identified by the specified HRESULT and allows execution to be cancelled.
Public methodFireWarning(Int32, String, String, Int32)Raises a warning identified by the specified HRESULT and associates it with the specified component, help file, and help context.
Public methodFireWarningWithArgs(Int32, Object[])Raises a warning identified by the specified HRESULT and includes an optional array of user-defined objects or information.
Public methodFireWarningWithArgs(Int32, String, String, Int32, 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.
Public methodGetFormattedMessageGets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
Public methodStatic memberGetFormattedMessageExGets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetErrorInterface(IDTSComponentEvents100)Specifies the IDTSComponentEvents100 instance that the ErrorSupport class will use to raise messages.
Protected methodSetErrorInterface(IDTSComponentMetaData100)Specifies the IDTSComponentMetadata100 instance that the ErrorSupport class will use to raise messages.
Protected methodSetErrorInterface(IDTSInfoEvents100)Specifies the IDTSInfoEvents100 instance that the ErrorSupport class will use to raise messages.
Public methodToString (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.