StringNormalizationExtensions.Normalize 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.
Normalizes a string.
Normalize(String) |
Normalizes a string to a Unicode normalization form C. |
Normalize(String, NormalizationForm) |
Normalizes a string to the specified Unicode normalization form. |
Normalizes a string to a Unicode normalization form C.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ Normalize(System::String ^ value);
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ Normalize(System::String ^ strInput);
public static string Normalize(this string value);
public static string Normalize(this string strInput);
static member Normalize : string -> string
static member Normalize : string -> string
<Extension()>
Public Function Normalize (value As String) As String
<Extension()>
Public Function Normalize (strInput As String) As String
Parameters
- valuestrInput
- String
The string to normalize.
Returns
A new string whose textual value is the same as value
but whose binary representation is in Unicode normalization form C.
Exceptions
value
is null
.
value
contains invalid Unicode characters.
Applies to
.NET 10 ja muud versioonid
Toode | Versioonid |
---|---|
.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 |
Normalizes a string to the specified Unicode normalization form.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ Normalize(System::String ^ value, System::Text::NormalizationForm normalizationForm);
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ Normalize(System::String ^ strInput, System::Text::NormalizationForm normalizationForm);
[System.Security.SecurityCritical]
public static string Normalize(this string value, System.Text.NormalizationForm normalizationForm);
public static string Normalize(this string strInput, System.Text.NormalizationForm normalizationForm);
[<System.Security.SecurityCritical>]
static member Normalize : string * System.Text.NormalizationForm -> string
static member Normalize : string * System.Text.NormalizationForm -> string
<Extension()>
Public Function Normalize (value As String, normalizationForm As NormalizationForm) As String
<Extension()>
Public Function Normalize (strInput As String, normalizationForm As NormalizationForm) As String
Parameters
- valuestrInput
- String
The string to normalize.
- normalizationForm
- NormalizationForm
The Unicode normalization form.
Returns
A new string whose textual value is the same as value
but whose binary representation is in the normalizationForm
normalization form.
- Attributes
Exceptions
value
is null
.
value
contains invalid Unicode characters.
Applies to
.NET 10 ja muud versioonid
Toode | Versioonid |
---|---|
.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 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: