Share via


JsonError.GetStatus(Int32) 方法

定義

使用傳回的 HRESULT 值取得特定錯誤。 可能的值為 JsonErrorStatus所定義。

public:
 static JsonErrorStatus GetStatus(int hresult);
/// [Windows.Foundation.Metadata.Deprecated("GetStatus may be altered or unavailable for releases after Windows 8.1. Instead, use GetJsonStatus.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 static JsonErrorStatus GetStatus(int const& hresult);
[Windows.Foundation.Metadata.Deprecated("GetStatus may be altered or unavailable for releases after Windows 8.1. Instead, use GetJsonStatus.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static JsonErrorStatus GetStatus(int hresult);
function getStatus(hresult)
Public Shared Function GetStatus (hresult As Integer) As JsonErrorStatus

參數

hresult
Int32

int

作業期間傳回 的 HRESULT

傳回

發生錯誤。

屬性

備註

只有 Windows 10 10.0.10240 版才支援此方法。 此方法已在更新版本中移除。

適用於