HelpLink 元素

Detail 属性的 HelpLink 元素是报表服务器生成的 URL 字符串。此 URL 指向由 Microsoft 帮助和支持管理的一个网页,并针对在 Reporting Services 中出现的特定错误提供附加帮助和知识库文章。此 URL 具有以下语法:

http://www.microsoft.com/products/ee/transform.aspx?EvtSrc=value**&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 Reporting Services。

下面的示例说明针对错误代码 rsReservedItem 返回的 HelpLink URL。当用户尝试修改或删除 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);
}