HttpRuntime::TargetFramework Property

.NET Framework (current version)
 

Gets the version of the .NET Framework that the current web application targets.

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

public:
property Version^ TargetFramework {
	static Version^ get();
}

Property Value

Type: System::Version^

The version of the .NET Framework that the current web application targets.

This property is normally set by using the targetFramework attribute of the httpRuntime element in the Web.config file.

This property is not guaranteed to return a correct value if the currentapplication domain is not an ASP.NET application domain.

.NET Framework
Available since 4.5
Return to top
Show: