ReportUrl.GetUrlBuilder(String, Boolean) Method

Definition

Creates a report URL in the form of a ReportUrlBuilder object from an initial URL, optionally using a replacement URL root. The URL can be relative.

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

Parameters

initialUrl
String

The URL to build the ReportUrlBuilder object from.

useReplacementRoot
Boolean

A Boolean indicating how to process the initialUrl parameter. If useReplacementRoot is true, the method sends the hyperlink through the user interface and encodes it as a parameter on the end of the replacement root string for rendering. If the URL is to be used as a source for data, set useReplacementRoot to false. If the URL is to be used as a hyperlink, set useReplacementRoot to true.

Returns

A ReportUrlBuilder object.

Remarks

ReplacementRoot is the new URL root to use for all URLs inside the report server. This is used by the UI to redirect links in reports to other reports. The default value is an empty string, which indicates that no redirection takes place.

Applies to