C# 클래스 Daniel15.Web.Extensions.UrlHelperExtensions

Various URL helpers
파일 보기 프로젝트 열기: Daniel15/Website

공개 메소드들

메소드 설명
Absolute ( this urlHelper, string uri ) : string

Converts the specified relative URI into an absolute URL

ContentAbsolute ( this urlHelper, string uri ) : string

Gets the absolute URL (http://..../blah) to the specified URI

Image ( this urlHelper, string filename ) : string

Gets the URL to the specified image

Js ( this urlHelper, string filename ) : string

Gets the URL to the specified JavaScript file

메소드 상세

Absolute() 공개 정적인 메소드

Converts the specified relative URI into an absolute URL
public static Absolute ( this urlHelper, string uri ) : string
urlHelper this URL helper
uri string Relative URI
리턴 string

ContentAbsolute() 공개 정적인 메소드

Gets the absolute URL (http://..../blah) to the specified URI
public static ContentAbsolute ( this urlHelper, string uri ) : string
urlHelper this The URL helper
uri string URI to link to
리턴 string

Image() 공개 정적인 메소드

Gets the URL to the specified image
public static Image ( this urlHelper, string filename ) : string
urlHelper this The URL helper.
filename string The filename.
리턴 string

Js() 공개 정적인 메소드

Gets the URL to the specified JavaScript file
public static Js ( this urlHelper, string filename ) : string
urlHelper this The URL helper.
filename string The filename.
리턴 string