Export (0) Print
Expand All

CompareInfo.Version Property

.NET Framework 4.5

Gets information about the version of Unicode used for comparing and sorting strings.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public SortVersion Version { get; }

Property Value

Type: System.Globalization.SortVersion
An object that contains information about the Unicode version used for comparing and sorting strings.

The weight of individual characters, and therefore the way in which particular strings are compared or ordered, depends on the version of the Unicode specification that a particular version of the .NET Framework implements. In the .NET Framework 4.5, this also depends on the host operating system, as the following table shows.

.NET Framework version

Operating system

Unicode version

.NET Framework 4

All operating systems

Unicode 5.0

.NET Framework 4.5

Windows 7

Unicode 5.0

.NET Framework 4.5

Windows 8

Unicode 6.0

The SortVersion object returned by the Version property doesn't identify the precise Unicode version used to compare strings. It is useful only when comparing two SortVersion objects to determine whether they use the same Unicode version and culture to compare strings. For more information and an example, see the SortVersion reference page.

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft