HttpContextWrapper.RewritePath 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
내부 재작성 경로를 할당하고 리소스 내부 경로와 다른 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:
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)
매개 변수
- filePath
- String
대체 경로입니다.
- pathInfo
- String
리소스에 대한 추가 경로 정보입니다.
- queryString
- String
요청 쿼리 문자열입니다.
- setClientFilePath
- Boolean
클라이언트 리소스에 사용되는 파일 경로를 filePath 매개 변수 값으로 설정하려면 true이고, 그렇지 않으면 false입니다.
예외
filePath이(가) null인 경우
filePath가 현재 애플리케이션의 루트 디렉터리에 있지 않습니다.
적용 대상
RewritePath(String, String, String)
지정된 경로, 경로 정보 및 쿼리 문자열 정보를 사용하여 URL을 다시 작성합니다.
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)
매개 변수
- filePath
- String
대체 경로입니다.
- pathInfo
- String
리소스에 대한 추가 경로 정보입니다.
- queryString
- String
요청 쿼리 문자열입니다.
예외
filePath 매개 변수가 null인 경우
filePath 매개 변수가 현재 애플리케이션의 루트 디렉터리에 있지 않습니다.
적용 대상
RewritePath(String, Boolean)
지정된 경로와 서버 리소스의 가상 경로가 수정되었는지 여부를 지정하는 값을 사용하여 URL을 다시 씁니다.
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)
매개 변수
- path
- String
다시 쓸 경로입니다.
- rebaseClientPath
- Boolean
가상 경로를 다시 설정하려면true 로 지정하고 가상 경로를 변경하지 않고 유지하려면 false 로 지정합니다.
예외
path이(가) null인 경우
path가 현재 애플리케이션의 루트 디렉터리에 있지 않습니다.
적용 대상
RewritePath(String)
지정된 경로를 사용하여 URL을 다시 작성합니다.
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)
매개 변수
- path
- String
대체 경로입니다.
예외
path이(가) null인 경우
path가 현재 애플리케이션의 루트 디렉터리에 있지 않습니다.