C# 클래스 ScrewTurn.Wiki.UrlTools

Implements useful URL-handling tools.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

공개 메소드들

메소드 설명
BuildUrl ( ) : string

Builds a URL properly prepending the namespace to the URL.

BuildUrl ( StringBuilder destination ) : void

Builds a URL properly appendind the NS parameter if appropriate.

GetCurrentNamespace ( ) : string

Extracts the current namespace from the URL, such as /App/Namespace.Edit.aspx.

Redirect ( string target ) : void

Redirects the current response to the specified URL, properly appending the current namespace if any.

Redirect ( string target, bool addNamespace ) : void

Redirects the current response to the specified URL, appending the current namespace if requested.

RedirectHome ( ) : void

Redirects to the default page of the current namespace.

RouteCurrentRequest ( ) : void

Properly routes the current virtual request to a physical ASP.NET page.

메소드 상세

BuildUrl() 공개 정적인 메소드

Builds a URL properly prepending the namespace to the URL.
public static BuildUrl ( ) : string
리턴 string

BuildUrl() 공개 정적인 메소드

Builds a URL properly appendind the NS parameter if appropriate.
public static BuildUrl ( StringBuilder destination ) : void
destination StringBuilder The destination .
리턴 void

GetCurrentNamespace() 공개 정적인 메소드

Extracts the current namespace from the URL, such as /App/Namespace.Edit.aspx.
public static GetCurrentNamespace ( ) : string
리턴 string

Redirect() 공개 정적인 메소드

Redirects the current response to the specified URL, properly appending the current namespace if any.
public static Redirect ( string target ) : void
target string The target URL.
리턴 void

Redirect() 공개 정적인 메소드

Redirects the current response to the specified URL, appending the current namespace if requested.
public static Redirect ( string target, bool addNamespace ) : void
target string The target URL.
addNamespace bool A value indicating whether to add the namespace.
리턴 void

RedirectHome() 공개 정적인 메소드

Redirects to the default page of the current namespace.
public static RedirectHome ( ) : void
리턴 void

RouteCurrentRequest() 공개 정적인 메소드

Properly routes the current virtual request to a physical ASP.NET page.
public static RouteCurrentRequest ( ) : void
리턴 void