Export (0) Print
Expand All

CompareInfo.GetCompareInfo Method (Int32, Assembly)

Initializes a new CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified Assembly.

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

public static CompareInfo GetCompareInfo(
	int culture,
	Assembly assembly
)

Parameters

culture
Type: System.Int32

An integer representing the culture identifier.

assembly
Type: System.Reflection.Assembly

An Assembly that contains the string comparison methods to use.

Return Value

Type: System.Globalization.CompareInfo
A new CompareInfo object associated with the culture with the specified identifier and using string comparison methods in the current Assembly.

ExceptionCondition
ArgumentNullException

assembly is null.

ArgumentException

assembly is of an invalid type.

NoteNote

The behavior of this method is unpredictable. It is recommended for your application to use a version of this method that does not take an assembly input.

The assembly parameter must be of the same type as Module.Assembly.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Show:
© 2014 Microsoft