HttpContextWrapper.RewritePath Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Affecte un chemin de réécriture interne, ce qui permet à l’URL demandée de différer du chemin d’accès interne de la ressource.
Surcharges
| Nom | Description |
|---|---|
| RewritePath(String, String, String, Boolean) |
Réécrit l’URL à l’aide du chemin d’accès spécifié, des informations de chemin d’accès, des informations de chaîne de requête et d’une valeur qui spécifie si le chemin du fichier client est défini sur le chemin de réécriture. |
| RewritePath(String, String, String) |
Réécrit l’URL à l’aide du chemin d’accès, des informations de chemin d’accès et des informations de chaîne de requête spécifiés. |
| RewritePath(String, Boolean) |
Réécrit l’URL à l’aide du chemin d’accès spécifié et d’une valeur qui spécifie si le chemin d’accès virtuel pour les ressources du serveur est modifié. |
| RewritePath(String) |
Réécrit l’URL à l’aide du chemin d’accès spécifié. |
RewritePath(String, String, String, Boolean)
Réécrit l’URL à l’aide du chemin d’accès spécifié, des informations de chemin d’accès, des informations de chaîne de requête et d’une valeur qui spécifie si le chemin du fichier client est défini sur le chemin de réécriture.
public:
override void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString, bool setClientFilePath);
public override void RewritePath(string filePath, string pathInfo, string queryString, bool setClientFilePath);
override this.RewritePath : string * string * string * bool -> unit
Public Overrides Sub RewritePath (filePath As String, pathInfo As String, queryString As String, setClientFilePath As Boolean)
Paramètres
- filePath
- String
Chemin d’accès de remplacement.
- pathInfo
- String
Informations supplémentaires sur le chemin d’accès d’une ressource.
- queryString
- String
Chaîne de requête de requête.
- setClientFilePath
- Boolean
true pour définir le chemin d’accès du fichier utilisé pour les ressources clientes à la valeur du filePath paramètre ; sinon, false.
Exceptions
filePath a la valeur null.
filePath n’est pas dans le répertoire racine de l’application actuelle.
S’applique à
RewritePath(String, String, String)
Réécrit l’URL à l’aide du chemin d’accès, des informations de chemin d’accès et des informations de chaîne de requête spécifiés.
public:
override void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString);
public override void RewritePath(string filePath, string pathInfo, string queryString);
override this.RewritePath : string * string * string -> unit
Public Overrides Sub RewritePath (filePath As String, pathInfo As String, queryString As String)
Paramètres
- filePath
- String
Chemin d’accès de remplacement.
- pathInfo
- String
Informations supplémentaires sur le chemin d’accès d’une ressource.
- queryString
- String
Chaîne de requête de requête.
Exceptions
Le filePath paramètre est null.
Le filePath paramètre n’est pas dans le répertoire racine de l’application actuelle.
S’applique à
RewritePath(String, Boolean)
Réécrit l’URL à l’aide du chemin d’accès spécifié et d’une valeur qui spécifie si le chemin d’accès virtuel pour les ressources du serveur est modifié.
public:
override void RewritePath(System::String ^ path, bool rebaseClientPath);
public override void RewritePath(string path, bool rebaseClientPath);
override this.RewritePath : string * bool -> unit
Public Overrides Sub RewritePath (path As String, rebaseClientPath As Boolean)
Paramètres
- path
- String
Chemin d’accès à réécrire.
- rebaseClientPath
- Boolean
true pour réinitialiser le chemin d’accès virtuel ; false pour conserver le chemin d’accès virtuel inchangé.
Exceptions
path a la valeur null.
path n’est pas dans le répertoire racine de l’application actuelle.
S’applique à
RewritePath(String)
Réécrit l’URL à l’aide du chemin d’accès spécifié.
public:
override void RewritePath(System::String ^ path);
public override void RewritePath(string path);
override this.RewritePath : string -> unit
Public Overrides Sub RewritePath (path As String)
Paramètres
- path
- String
Chemin d’accès de remplacement.
Exceptions
path a la valeur null.
path n’est pas dans le répertoire racine de l’application actuelle.