GetCompareInfo Method
Collapse the table of content
Expand the table of content

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.

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

public static CompareInfo GetCompareInfo(
	string name
)

Parameters

name
Type: System.String
A string representing the culture name.

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

name is null.

ArgumentException

name is an invalid culture name.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft