C# Класс ScrewTurn.Wiki.UrlTools

Implements useful URL-handling tools.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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