Metodo ErrorSupport.GetFormattedMessage

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

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

Sintassi

'Dichiarazione
Public Function GetFormattedMessage ( _
    hResult As Integer, _
    <OutAttribute> ByRef strFormattedText As String, _
    ParamArray paramList As Object() _
) As Integer
'Utilizzo
Dim instance As ErrorSupport 
Dim hResult As Integer 
Dim strFormattedText As String 
Dim paramList As Object()
Dim returnValue As Integer 

returnValue = instance.GetFormattedMessage(hResult, _
    strFormattedText, paramList)
public int GetFormattedMessage(
    int hResult,
    out string strFormattedText,
    params Object[] paramList
)
public:
int GetFormattedMessage(
    int hResult, 
    [OutAttribute] String^% strFormattedText, 
    ... array<Object^>^ paramList
)
member GetFormattedMessage : 
        hResult:int * 
        strFormattedText:string byref * 
        paramList:Object[] -> int
public function GetFormattedMessage(
    hResult : int, 
    strFormattedText : String, 
    ... paramList : Object[]
) : int

Parametri

  • hResult
    Tipo: System.Int32
    The HRESULT for which to return the formatted error message.
  • strFormattedText
    Tipo: System.String%
    The formatted error message.
  • paramList
    Tipo: array<System.Object[]
    An array of parameter values required for the formatted error message.

Valore restituito

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

Vedere anche

Riferimento

ErrorSupport Classe

Spazio dei nomi Microsoft.SqlServer.Dts.ManagedMsg