Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpRuntime.IISVersion Property

.NET Framework 4.6 and 4.5

Gets the version of IIS that is hosting this application.

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

'Declaration
Public Shared ReadOnly Property IISVersion As Version

Property Value

Type: System.Version
The version of IIS that is hosting this application, or Nothing 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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft