语言

ErrorSupport.GetFormattedMessageEx(Int32, String, Object[]) 方法

定义

获取 HRESULT 的错误消息,并通过填充参数来格式化消息。

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

参数

hResult
Int32

返回格式化错误消息的 HRESULT。

strFormattedText
String

格式化的错误消息。

paramList
Object[]

格式化错误消息所需的参数数组。

返回

一个表示方法成功还是失败的值。

适用于