HttpContextWrapper.RewritePath Metoda

Definice

Přiřadí interní cestu přepsání, která umožňuje, aby se požadovaná adresa URL liší od interní cesty prostředku.

Přetížení

Name Description
RewritePath(String, String, String, Boolean)

Přepíše adresu URL pomocí zadané cesty, informací o cestě, informací o řetězci dotazu a hodnoty, která určuje, jestli je cesta k souboru klienta nastavená na cestu přepsání.

RewritePath(String, String, String)

Přepíše adresu URL pomocí zadané cesty, informací o cestě a informací o řetězci dotazu.

RewritePath(String, Boolean)

Přepíše adresu URL pomocí zadané cesty a hodnoty, která určuje, jestli je změněna virtuální cesta pro prostředky serveru.

RewritePath(String)

Přepíše adresu URL pomocí zadané cesty.

RewritePath(String, String, String, Boolean)

Přepíše adresu URL pomocí zadané cesty, informací o cestě, informací o řetězci dotazu a hodnoty, která určuje, jestli je cesta k souboru klienta nastavená na cestu přepsání.

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)

Parametry

filePath
String

Náhradní cesta.

pathInfo
String

Další informace o cestě pro prostředek

queryString
String

Řetězec dotazu požadavku.

setClientFilePath
Boolean

truepro nastavení cesty k souboru použitému pro klientské prostředky na hodnotu parametrufilePath, jinak . false

Výjimky

filePath je null.

filePath není v kořenovém adresáři aktuální aplikace.

Platí pro

RewritePath(String, String, String)

Přepíše adresu URL pomocí zadané cesty, informací o cestě a informací o řetězci dotazu.

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)

Parametry

filePath
String

Náhradní cesta.

pathInfo
String

Další informace o cestě pro prostředek

queryString
String

Řetězec dotazu požadavku.

Výjimky

Parametr filePath je null.

Parametr filePath není v kořenovém adresáři aktuální aplikace.

Platí pro

RewritePath(String, Boolean)

Přepíše adresu URL pomocí zadané cesty a hodnoty, která určuje, jestli je změněna virtuální cesta pro prostředky serveru.

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)

Parametry

path
String

Cesta k přepsání.

rebaseClientPath
Boolean

true resetování virtuální cesty; false zachovat virtuální cestu beze změny.

Výjimky

path je null.

path není v kořenovém adresáři aktuální aplikace.

Platí pro

RewritePath(String)

Přepíše adresu URL pomocí zadané cesty.

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)

Parametry

path
String

Náhradní cesta.

Výjimky

path je null.

path není v kořenovém adresáři aktuální aplikace.

Platí pro