Export (0) Print
Expand All

IHttpSite Interface

IIS 7.0

Provides site-specific information within the current context.

class IHttpSite

The following table lists the methods exposed by the IHttpSite interface.

Name

Description

GetModuleContextContainer

Returns the context container for a site.

GetPerfCounterInfo

Retrieves an IHttpPerfCounterInfo interface.

GetSiteId

Retrieves the unique ID for the Web site.

GetSiteName

Retrieves the name for the Web site.

This interface contains no derived classes.

The IHttpSite interface provides information for the Web site within the current context. For example, you can call the IPreBeginRequestProvider::GetHttpContext or IGlobalTraceEventProvider::GetCurrentHttpRequestContext methods to retrieve an IHttpContext interface for the current context, and then call the IHttpContext::GetSite method to retrieve an IHttpSite interface in order to retrieve the site-specific information for the current context.

Type

Description

Client

  • IIS 7.0 on Windows Vista

  • IIS 7.5 on Windows 7

  • IIS Express 7.5 on Windows XP, Windows Vista, Windows 7

  • IIS 8.0 on Windows 8 Client

Server

  • IIS 7.0 on Windows Server 2008

  • IIS 7.5 on Windows Server 2008 R2

  • IIS Express 7.5 on Windows Server 2003, Windows Server 2008, Windows Server 2008 R2

  • IIS 8.0 on Windows Server 2012

Product

IIS 7.0, IIS 7.5, IIS Express 7.5, IIS 8.0

Header

Httpserv.h

Community Additions

ADD
Show:
© 2014 Microsoft