HelpLink 元素

Detail 属性的 HelpLink 元素是报表服务器生成的 URL 字符串。 该 URL 面向由 Microsoft 帮助和支持管理的网页,并提供更多有关 Reporting Services 中发生的特定错误的帮助和知识库文章。 此 URL 具有以下语法:

https://www.microsoft.com/products/ee/transform.aspx?EvtSrc=v_alue_&EvtID=value&ProdName=value&ProdVer=value

下表列出 HelpLink URL 的参数。

参数
EvtSrc “Microsoft.ReportingServices.Diagnostics.ErrorStrings.resources.Strings”
EvtID 报表服务器错误代码,例如,rsReservedItem。
ProdName “Microsoft SQL%20Server%20Reporting%20Services”。 产品名称的值已进行 URL 编码。
ProdVer Reporting Services 的版本号。 值为“8.00”指示 SQL Server 2000 (8.x) Reporting Services。

下面的示例说明针对错误代码 rsReservedItem 返回的 HelpLinkURL。 当用户尝试修改或删除 Reporting Services 中的保留项时,将出现此错误。

https://www.microsoft.com/products/ee/transform.aspx?  
EvtSrc=Microsoft.ReportingServices.Diagnostics.ErrorStrings.resources.Strings  
&EvtID=rsReservedItem&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00  

可以使用 SoapException 类在代码中访问 HelpLink 元素。

Try  
   rs.DeleteItem("/Report1")  
  
Catch e As SoapException  
   Console.WriteLine(e.Detail("HelpLink").InnerXml)  
End Try  
try  
{  
   rs.DeleteItem("/Report1");  
}  
  
catch (SoapException e)  
{  
   Console.WriteLine(e.Detail["HelpLink"].InnerXml);  
}  

Reporting Services 中的异常管理简介
Reporting Services SoapException 类
使用 Detail 属性处理特定错误