CompareInfo.GetCompareInfo Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new CompareInfo object that is associated with the culture with the specified name.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- name
- Type: System.String
A string representing the culture name.
Return Value
Type: System.Globalization.CompareInfoA new CompareInfo object associated with the culture with the specified identifier and using string comparison methods in the current Assembly.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null. |
| ArgumentException | name is an invalid culture name. |
Show: