C# 클래스 UrlModule, IowaCodeCamp

Removes or adds the www subdomain from all requests and makes a permanent redirection to the new location.
상속: IHttpModule
파일 보기 프로젝트 열기: IowaCodeCamp/IowaCodeCamp 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Disposes of the resources (other than memory) used by the module that implements .

Init ( HttpApplication context ) : void

Initializes a module and prepares it to handle requests.

비공개 메소드들

메소드 설명
AddWww ( HttpContext context ) : void

Adds the www subdomain to the request and redirects.

PermanentRedirect ( string url, HttpContext context ) : void

Sends permanent redirection headers (301)

RemoveWww ( HttpContext context ) : void

Removes the www subdomain from the request and redirects.

context_BeginRequest ( object sender, EventArgs e ) : void

Handles the BeginRequest event of the context control.

메소드 상세

Dispose() 공개 메소드

Disposes of the resources (other than memory) used by the module that implements .
public Dispose ( ) : void
리턴 void

Init() 공개 메소드

Initializes a module and prepares it to handle requests.
public Init ( HttpApplication context ) : void
context HttpApplication An that provides /// access to the methods, properties, and events common to all application objects within an ASP.NET application
리턴 void