Sitecore 5.1.1 API

MainUtil.GetDotNetVersion Method 

Gets the version of the current .NET Framework.

[Visual Basic]
Public Shared Function GetDotNetVersion() As String
[C#]
public static string GetDotNetVersion();

Return Value

The version of the current .NET Framework.

Example

  string version = MainUtil.GetDotNetVersion();

See Also

MainUtil Class | Sitecore Namespace | Version