HttpRuntime.IISVersion Property

.NET Framework (current version)
 

Gets the version of IIS that is hosting this application.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

static member IISVersion : Version with get

Property Value

Type: System.Version

The version of IIS that is hosting this application, or null if this application is not hosted by IIS.

The version includes major version and minor version; for example, 7.0, 7.5, 8.0, etc.

.NET Framework
Available since 4.5
Return to top
Show: