Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StringNormalizationExtensions.IsNormalized Method

Definition

Namespace:
System
Assemblies:
netstandard.dll, System.Runtime.dll
Assemblies:
System.dll, System.Globalization.Extensions.dll
Assembly:
System.Globalization.Extensions.dll
Assembly:
System.Runtime.Extensions.dll
Assembly:
System.dll
Assembly:
netstandard.dll

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.

Indicates whether a string is normalized.

Overloads

Name Description
IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

Determines whether the specified span of characters is in a normalized form.

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(ReadOnlySpan<Char>, NormalizationForm)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

Determines whether the specified span of characters is in a normalized form.

public static bool IsNormalized(this ReadOnlySpan<char> source, System.Text.NormalizationForm normalizationForm = System.Text.NormalizationForm.FormC);
static member IsNormalized : ReadOnlySpan<char> * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (source As ReadOnlySpan(Of Char), Optional normalizationForm As NormalizationForm = System.Text.NormalizationForm.FormC) As Boolean

Parameters

source
ReadOnlySpan<Char>

The span of characters to check.

normalizationForm
NormalizationForm

The normalization form to use.

Returns

true if the specified span of characters is in a normalized form; otherwise, false.

Exceptions

The specified character span contains an invalid code point or the normalization form is invalid.

Applies to

IsNormalized(String)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput);
public static bool IsNormalized(this string value);
public static bool IsNormalized(this string strInput);
static member IsNormalized : string -> bool
static member IsNormalized : string -> bool
<Extension()>
Public Function IsNormalized (value As String) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String) As Boolean

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

IsNormalized(String, NormalizationForm)

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value, System::Text::NormalizationForm normalizationForm);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput, System::Text::NormalizationForm normalizationForm);
[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);
[<System.Security.SecurityCritical>]
static member IsNormalized : string * System.Text.NormalizationForm -> bool
static member IsNormalized : string * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (value As String, normalizationForm As NormalizationForm) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String, normalizationForm As NormalizationForm) As Boolean

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


Feedback

Was this page helpful?