# VersionInfo Class

> The VersionInfo class provides information about the running TX Text Control version, such as the version number, the installed service pack number and the product level.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 21.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > VersionInfo Class
- **608 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/llms-full.txt

---

### Description

The VersionInfo class provides information about the running TX Text Control version, such as the version number, the installed service pack number and the product level.

### Syntax

```csharp
public class VersionInfo
```

```vbnet
Public Class VersionInfo
```

### Examples

The following example verifies that the installed TX Text Control runtime has the required major version.

```csharp
VersionInfo versionInfo = textControl.GetVersionInfo();
if (versionInfo.Major < 34)
{
    throw new NotSupportedException("TX Text Control 34 or later is required.");
}
```

```vbnet
Dim versionInfo As VersionInfo = textControl.GetVersionInfo()
If versionInfo.Major < 34 Then
    Throw New NotSupportedException("TX Text Control 34 or later is required.")
End If
```

---

## In This Section

- [VersionInfo.Major Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/major-property/llms-full.txt): Gets the major version number.
- [VersionInfo.Minor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/minor-property/llms-full.txt): Gets the minor version number.
- [VersionInfo.ProductLevel Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/productlevel-property/llms-full.txt): Gets the installed product level.
- [VersionInfo.ServicePack Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/servicepack-property/llms-full.txt): Gets the number of the installed service pack. The original version has the service pack number 0.

---

## Nearby

- **Previous:** [UserDefinedPropertyDictionary.Values Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/userdefinedpropertydictionary/values-property/llms-full.txt)
- **Next:** [VersionInfo.Major Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/versioninfo/major-property/llms-full.txt)
