ErrorSupport.GetFormattedMessage(Int32, String, Object[]) Método

Definición

Obtiene el mensaje de error para un valor HRESULT y adapta el mensaje rellenando los parámetros con los valores proporcionados.

public:
 int GetFormattedMessage(int hResult, [Runtime::InteropServices::Out] System::String ^ % strFormattedText, ... cli::array <System::Object ^> ^ paramList);
public int GetFormattedMessage (int hResult, out string strFormattedText, params object[] paramList);
member this.GetFormattedMessage : int * string * obj[] -> int
Public Function GetFormattedMessage (hResult As Integer, ByRef strFormattedText As String, ParamArray paramList As Object()) As Integer

Parámetros

hResult
Int32

Valor HRESULT para el que se va a devolver el mensaje de error con formato.

strFormattedText
String

El mensaje de error con formato.

paramList
Object[]

Una matriz de valores de parámetro requerida para el mensaje de error con formato.

Devoluciones

Un valor que indica si el método GetFormattedMessage(Int32, String, Object[]) se realizó correctamente o no. Un valor de 0 (cero) indica que se realizó correctamente.

Se aplica a