System::Runtime::InteropServices::Marshal::GetHRForException method

Marshal::GetHRForException method

Gets HResult from exception.

static int32_t System::Runtime::InteropServices::Marshal::GetHRForException(const System::Exception &exc)
ParameterTypeDescription
excconst System::Exception&Exception to get HResult for.

ReturnValue

HResult value.

See Also