HttpContextBase.RewritePath 메서드

정의

파생 클래스에서 재정의되는 경우 내부 재작성 경로를 할당하고 리소스 내부 경로와 다른 URL을 요청할 수 있도록 허용합니다.

오버로드

RewritePath(String, String, String, Boolean)

파생 클래스에서 재정의된 경우 지정된 경로, 경로 정보, 쿼리 문자열 정보 및 클라이언트 파일 경로가 다시 작성 경로로 설정되었는지 여부를 지정하는 값을 사용하여 URL을 다시 작성합니다.

RewritePath(String, String, String)

파생 클래스에서 재정의된 경우 지정된 경로, 경로 정보 및 쿼리 문자열 정보를 사용하여 URL을 다시 작성합니다.

RewritePath(String, Boolean)

파생 클래스에서 재정의된 경우 지정된 경로와 서버 리소스의 가상 경로가 수정되었는지 여부를 지정하는 값을 사용하여 URL을 다시 작성합니다.

RewritePath(String)

파생 클래스에서 재정의된 경우 지정된 경로를 사용하여 URL을 다시 씁니다.

RewritePath(String, String, String, Boolean)

파생 클래스에서 재정의된 경우 지정된 경로, 경로 정보, 쿼리 문자열 정보 및 클라이언트 파일 경로가 다시 작성 경로로 설정되었는지 여부를 지정하는 값을 사용하여 URL을 다시 작성합니다.

public:
 virtual void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString, bool setClientFilePath);
public virtual void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath);
abstract member RewritePath : string * string * string * bool -> unit
override this.RewritePath : string * string * string * bool -> unit
Public Overridable Sub RewritePath (filePath As String, pathInfo As String, queryString As String, setClientFilePath As Boolean)

매개 변수

filePath
String

대체 경로입니다.

pathInfo
String

리소스에 대한 추가 경로 정보입니다.

queryString
String

요청 쿼리 문자열입니다.

setClientFilePath
Boolean

클라이언트 리소스에 사용되는 파일 경로를 filePath 매개 변수 값으로 설정하려면 true이고, 그렇지 않으면 false입니다.

예외

적용 대상

RewritePath(String, String, String)

파생 클래스에서 재정의된 경우 지정된 경로, 경로 정보 및 쿼리 문자열 정보를 사용하여 URL을 다시 작성합니다.

public:
 virtual void RewritePath(System::String ^ filePath, System::String ^ pathInfo, System::String ^ queryString);
public virtual void RewritePath (string filePath, string pathInfo, string queryString);
abstract member RewritePath : string * string * string -> unit
override this.RewritePath : string * string * string -> unit
Public Overridable Sub RewritePath (filePath As String, pathInfo As String, queryString As String)

매개 변수

filePath
String

대체 경로입니다.

pathInfo
String

리소스에 대한 추가 경로 정보입니다.

queryString
String

요청 쿼리 문자열입니다.

예외

적용 대상

RewritePath(String, Boolean)

파생 클래스에서 재정의된 경우 지정된 경로와 서버 리소스의 가상 경로가 수정되었는지 여부를 지정하는 값을 사용하여 URL을 다시 작성합니다.

public:
 virtual void RewritePath(System::String ^ path, bool rebaseClientPath);
public virtual void RewritePath (string path, bool rebaseClientPath);
abstract member RewritePath : string * bool -> unit
override this.RewritePath : string * bool -> unit
Public Overridable Sub RewritePath (path As String, rebaseClientPath As Boolean)

매개 변수

path
String

대체 경로입니다.

rebaseClientPath
Boolean

가상 경로를 다시 설정하려면true 로 지정하고 가상 경로를 변경하지 않고 유지하려면 false 로 지정합니다.

예외

적용 대상

RewritePath(String)

파생 클래스에서 재정의된 경우 지정된 경로를 사용하여 URL을 다시 씁니다.

public:
 virtual void RewritePath(System::String ^ path);
public virtual void RewritePath (string path);
abstract member RewritePath : string -> unit
override this.RewritePath : string -> unit
Public Overridable Sub RewritePath (path As String)

매개 변수

path
String

대체 경로입니다.

예외

적용 대상