Partager via


Méthode ReportUrl.GetUrlBuilder

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.

Espace de noms :  Microsoft.ReportingServices.ReportRendering
Assembly :  Microsoft.ReportingServices.ProcessingCore (en Microsoft.ReportingServices.ProcessingCore.dll)

Syntaxe

'Déclaration
Public Function GetUrlBuilder ( _
    initialUrl As String, _
    useReplacementRoot As Boolean _
) As ReportUrlBuilder
'Utilisation
Dim instance As ReportUrl 
Dim initialUrl As String 
Dim useReplacementRoot As Boolean 
Dim returnValue As ReportUrlBuilder 

returnValue = instance.GetUrlBuilder(initialUrl, _
    useReplacementRoot)
public ReportUrlBuilder GetUrlBuilder(
    string initialUrl,
    bool useReplacementRoot
)
public:
ReportUrlBuilder^ GetUrlBuilder(
    String^ initialUrl, 
    bool useReplacementRoot
)
member GetUrlBuilder : 
        initialUrl:string * 
        useReplacementRoot:bool -> ReportUrlBuilder
public function GetUrlBuilder(
    initialUrl : String, 
    useReplacementRoot : boolean
) : ReportUrlBuilder

Paramètres

  • useReplacementRoot
    Type : System.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.

Valeur de retour

Type : Microsoft.ReportingServices.ReportRendering.ReportUrlBuilder
A ReportUrlBuilder object.

Notes

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.

Voir aussi

Référence

ReportUrl Classe

Espace de noms Microsoft.ReportingServices.ReportRendering