共用方式為


ErrorSupport.FireErrorWithArgs Method (Int32, out 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.

命名空間: Microsoft.SqlServer.Dts.ManagedMsg
組件: Microsoft.SqlServer.DtsMsg (in microsoft.sqlserver.dtsmsg.dll)

語法

'宣告
Public Sub FireErrorWithArgs ( _
    hResult As Integer, _
    <OutAttribute> ByRef bCancel As Boolean, _
    ParamArray paramList As Object() _
)
public void FireErrorWithArgs (
    int hResult,
    out bool bCancel,
    params Object[] paramList
)
public:
void FireErrorWithArgs (
    int hResult, 
    [OutAttribute] bool% bCancel, 
    ... array<Object^>^ paramList
)
public void FireErrorWithArgs (
    int hResult, 
    /** @attribute OutAttribute() */ /** @ref */ boolean bCancel, 
    Object[] paramList
)
JScript 不支援以傳址方式傳遞值類型的引數。

參數

  • hResult
    The HRESULT of the underlying COM error.
  • bCancel
    true to cancel execution; otherwise, false.
  • paramList
    An optional array of user-defined objects or information.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ErrorSupport Class
ErrorSupport Members
Microsoft.SqlServer.Dts.ManagedMsg Namespace