Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Exception Condition
ArgumentNullException

assembly is null.

ArgumentException

assembly is of an invalid type.

System_CAPS_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
Available since 1.1
Return to top
Show:
© 2017 Microsoft