System::Runtime::InteropServices::Marshal::GetHRForException 方法

Marshal::GetHRForException method

从异常获取 HResult。

static int32_t System::Runtime::InteropServices::Marshal::GetHRForException(const System::Exception &exc)
参数类型描述
excconst System::Exception&用于获取 HResult 的 Exception

ReturnValue

HResult 值。

另见