你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExceptionExtensions.GetReferenceCode(Exception) 方法

定义

从给定异常中获取异常 ID。

public static string GetReferenceCode (this Exception exception);
static member GetReferenceCode : Exception -> string
<Extension()>
Public Function GetReferenceCode (exception As Exception) As String

参数

exception
Exception

异常。

返回

异常 ID。

适用于