| title | IHttpSite Interface |
|---|---|
| description | Describes the IHttpSite interface and details its syntax, methods, derived classes, remarks, and requirements. |
| ms.date | 10/07/2016 |
| ms.assetid | 3cd41621-c5a7-d717-2138-b5c34abbb539 |
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 [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - 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 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Httpserv.h |