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[]
格式化错误消息所需的参数数组。
返回
一个表示方法成功还是失败的值。