StringNormalizationExtensions.IsNormalized Method

Definition

Indicates whether a string is normalized.

Overloads

IsNormalized(String)

Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm)

Indicates whether a string is in a specified Unicode normalization form.

IsNormalized(String)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

Indicates whether the specified string is in Unicode normalization form C.

public static bool IsNormalized (this string value);
public static bool IsNormalized (this string strInput);

Parameters

valuestrInput
String

A string.

Returns

true if value is in normalization form C; otherwise, false.

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to

.NET 9 a další verze
Produkt Verze
.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
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

IsNormalized(String, NormalizationForm)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

Indicates whether a string is in a specified Unicode normalization form.

[System.Security.SecurityCritical]
public static bool IsNormalized (this string value, System.Text.NormalizationForm normalizationForm);
public static bool IsNormalized (this string strInput, System.Text.NormalizationForm normalizationForm);

Parameters

valuestrInput
String

A string.

normalizationForm
NormalizationForm

A Unicode normalization form.

Returns

true if value is in normalization form normalizationForm; otherwise, false.

Attributes

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to

.NET 9 a další verze
Produkt Verze
.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
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0