ErrorSupport.GetFormattedMessageEx(Int32, String, Object[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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[]
格式化錯誤訊息所需的參數值陣列。
傳回
指出此方法成功或失敗的值。