HttpRuntime::IISVersion Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the version of IIS that is hosting this application.

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

property Version^ IISVersion {
	static Version^ 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