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

定义

获取 HRESULT 的错误消息,并使用所提供的值填充参数来设置消息的格式。

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

参数

hResult
Int32

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

strFormattedText
String

带有格式的错误消息。

paramList
Object[]

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

返回

一个值,用于指示 GetFormattedMessage(Int32, String, Object[]) 方法是成功还是失败。 0(零)值表示成功。

适用于