Share via


IHttpSite Interface

 

Provides site-specific information within the current context.

Syntax

class IHttpSite  

Methods

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.

Derived Classes

This interface contains no derived classes.

Remarks

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.

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016 Technical Preview
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- IIS Express 7.5, IIS Express 8.0, IIS Express 10.0
Header Httpserv.h

See Also

Web Server Core Interfaces