语言

ReportUrl.GetUrlBuilder(String, Boolean) 方法

定义

从初始 URL 创建一个以对象形式 ReportUrlBuilder 创建报告 URL,可选地使用替换的根 URL 。 URL可以是相对的。

public:
 Microsoft::ReportingServices::ReportRendering::ReportUrlBuilder ^ GetUrlBuilder(System::String ^ initialUrl, bool useReplacementRoot);
public Microsoft.ReportingServices.ReportRendering.ReportUrlBuilder GetUrlBuilder(string initialUrl, bool useReplacementRoot);
member this.GetUrlBuilder : string * bool -> Microsoft.ReportingServices.ReportRendering.ReportUrlBuilder
Public Function GetUrlBuilder (initialUrl As String, useReplacementRoot As Boolean) As ReportUrlBuilder

参数

initialUrl
String

用来构建 ReportUrlBuilder 对象的URL。

useReplacementRoot
Boolean

A Boolean 表示如何处理该 initialUrl 参数。 如果 useReplacementRoot 是 true,方法通过用户界面发送超链接,并将其编码为替换根字符串末尾的参数以供渲染。 如果 URL 要作为数据源,请设 useReplacementRoot 为 false。 如果 URL 要用作超链接,请设置为 useReplacementRoottrue。

返回

ReportUrlBuilder 对象。

注解

ReplacementRoot 是报告服务器内所有 URL 的新 URL 根。 UI用它来重定向报告中的链接到其他报告。 默认值为空字符串,表示不进行重定向。

适用于