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[]

格式化錯誤訊息所需的參數值陣列。

傳回

Int32

指出此方法成功或失敗的值。

適用於