HttpCapabilitiesBase::ClrVersion Property

 
System_CAPS_noteNote

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

Gets the version of the .NET Framework that is installed on the client.

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

public:
property Version^ ClrVersion {
	Version^ get();
}

Property Value

Type: System::Version^

The common language runtime Version.

The ClrVersion property is supported only when the browser is Internet Explorer version 5.0 and later.

If the .NET Framework is not installed on the client, the value of the version elements returned is 0, 0,-1,-1.

If more than one version of the .NET Framework is installed on the client, the ClrVersion property returns the latest version.

.NET Framework
Available since 2.0
Return to top
Show: