GlobalizationExtensions.GetStringComparer(CompareInfo, CompareOptions) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a StringComparer object based on the culture-sensitive string comparison rules of a specified CompareInfo object.
public:
[System::Runtime::CompilerServices::Extension]
static StringComparer ^ GetStringComparer(System::Globalization::CompareInfo ^ compareInfo, System::Globalization::CompareOptions options);
public static StringComparer GetStringComparer(this System.Globalization.CompareInfo compareInfo, System.Globalization.CompareOptions options);
static member GetStringComparer : System.Globalization.CompareInfo * System.Globalization.CompareOptions -> StringComparer
<Extension()>
Public Function GetStringComparer (compareInfo As CompareInfo, options As CompareOptions) As StringComparer
- compareInfo
- CompareInfo
An object that supports culture-sensitive string comparison.
- options
- CompareOptions
A value that defines how strings should be compared. options
is either the enumeration value Ordinal, the enumeration value OrdinalIgnoreCase, or a bitwise combination of one or more of the following values: IgnoreCase, IgnoreSymbols, IgnoreNonSpace, IgnoreWidth, IgnoreKanaType, and StringSort.
An object that can be used to perform string comparisons.
compareInfo
is null
.
options
is invalid.
Производ | Верзије |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: