ErrorSupport.GetFormattedMessage Method

Gets the error message for an HRESULT and formats the message by populating parameters with the supplied values.

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

語法

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

參數

  • hResult
    The HRESULT for which to return the formatted error message.
  • strFormattedText
    The formatted error message.
  • paramList
    An array of parameter values required for the formatted error message.

傳回值

A value that indicates whether the GetFormattedMessage method succeeded or failed. A value of 0 (zero) indicates success.

執行緒安全性

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