共用方式為


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.

繼承階層

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

命名空間:  Microsoft.SqlServer.Dts.ManagedMsg
組件:  Microsoft.SqlServer.DtsMsg (在 Microsoft.SqlServer.DtsMsg.dll 中)

語法

'宣告
<ComVisibleAttribute(False)> _
Public Class ErrorSupport
'用途
Dim instance As ErrorSupport
[ComVisibleAttribute(false)]
public class ErrorSupport
[ComVisibleAttribute(false)]
public ref class ErrorSupport
[<ComVisibleAttribute(false)>]
type ErrorSupport =  class end
public class ErrorSupport

ErrorSupport 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ErrorSupport(IDTSComponentEvents100) Initializes a new instance of the ErrorSupport class.
受保護的方法 ErrorSupport(IDTSComponentMetaData100) Initializes a new instance of the ErrorSupport class.
公用方法 ErrorSupport(IDTSInfoEvents100) Initializes a new instance of the ErrorSupport class.
公用方法 ErrorSupport(IDTSComponentEvents100, String, String, Int32) Initializes a new instance of the ErrorSupport class.
受保護的方法 ErrorSupport(IDTSComponentMetaData100, String, String, Int32) Initializes a new instance of the ErrorSupport class.
公用方法 ErrorSupport(IDTSInfoEvents100, String, String, Int32) Initializes a new instance of the ErrorSupport class.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 FireError(Int32, Boolean%) Raises an error identified by the specified HRESULT and allows execution to be cancelled.
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 FireInformation(Int32, Boolean%) Raises an informational message about the specified HRESULT and allows execution to be cancelled.
公用方法 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.
公用方法 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.
公用方法 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.
公用方法 FireWarning(Int32) Raises a warning identified by the specified HRESULT and allows execution to be cancelled.
公用方法 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.
公用方法 FireWarningWithArgs(Int32, array<Object[]) Raises a warning identified by the specified HRESULT and includes an optional array of user-defined objects or information.
公用方法 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.
公用方法 GetFormattedMessage Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
公用方法靜態成員 GetFormattedMessageEx Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 SetErrorInterface(IDTSComponentEvents100) Specifies the IDTSComponentEvents100 instance that the ErrorSupport class will use to raise messages.
受保護的方法 SetErrorInterface(IDTSComponentMetaData100) Specifies the IDTSComponentMetadata100 instance that the ErrorSupport class will use to raise messages.
受保護的方法 SetErrorInterface(IDTSInfoEvents100) Specifies the IDTSInfoEvents100 instance that the ErrorSupport class will use to raise messages.
公用方法 ToString (繼承自 Object。)

上層

備註

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.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.ManagedMsg 命名空間