Throws an exception with a specific failure HRESULT value.
掷回具有特定错误HRESULT值的例外状况。
COM methods usually return an HRESULT, indicating that the call succeeded or failed.
COM方法通常会传回HRESULT,表示呼叫成功或失败。
When managed code throws an exception, the runtime passes the HRESULT to the COM client.
当托管代码引发异常时,运行时将HRESULT 传递给 COM 客户端。
If method a calls method b, but does not use the HRESULT or error code that the method returns.
如果方法a调用了方法B,但并未使用该方法返回的HRESULT或错误代码。
The common language runtime throws an exception when a com method in native code returns an HRESULT.
当本机代码中的COM方法返回HRESULT时,公共语言运行时会引发一个异常。
Ignoring HRESULT or error code can lead to unexpected behavior in error conditions or to low-resource conditions.
如果忽略HRESULT或错误代码,可能会导致在出错或资源不足的情况下出现意外行为。
HRESULT is a 32-bit value, divided into three different fields: a severity code, a facility code, and an error code.
HRESULT为32位元值,它划分为三个不同栏位:严重性代码、设备代码和错误码。
The HRESULT to exception mapping also works in the other direction by returning specific HRESULTs to unmanaged clients.
HRESULT到异常的映射也可以反方向使用,将特定的HRESULT返回到非托管客户端。
By default, the runtime throws an exception to managed code by mapping the failure HRESULT to an equivalent managed exception.
默认情况下,运行时会将失败的HRESULT映射到一个等效的托管异常,从而向托管代码引发异常。
With HResult the execution mode can combine MDX and XML in a single run tree, allowing for much higher flexibility and query performance.
通过 HResult,执行模式可以在单个运行树中结合MDX和XML,实现更高的灵活性和查询性能。
SetJMCStatus returns an HRESULT value of S_FALSE if it fails to set the value for any method, even if it successfully sets the value for all other methods.
无法为任何方法设定此值,便会传回 S_FALSE的HRESULT 值,即使成功为所有其他方法设定此值亦然。
SetJMCStatus returns an HRESULT value of S_FALSE if it fails to set the value for any method, even if it successfully sets the value for all other methods.
无法为任何方法设定此值,便会传回 S_FALSE的HRESULT 值,即使成功为所有其他方法设定此值亦然。
应用推荐