StringNormalizationExtensions.IsNormalized 方法

定义

指示是否规范化字符串。

重载

IsNormalized(String)

指示指定字符串是否符合 Unicode 范式 C。

IsNormalized(String, NormalizationForm)

指示某一字符串是否符合指定 Unicode 范式。

IsNormalized(String)

指示指定字符串是否符合 Unicode 范式 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

参数

valuestrInput
String

一个字符串。

返回

Boolean

如果 value 符合范式 C,则为 true;否则为 false

例外

valuenull

value 包含无效的 Unicode 字符。

适用于

IsNormalized(String, NormalizationForm)

指示某一字符串是否符合指定 Unicode 范式。

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

参数

valuestrInput
String

一个字符串。

normalizationForm
NormalizationForm

一个 Unicode 范式。

返回

Boolean

如果 value 符合范式 normalizationForm,则为 true;否则为 false

属性

例外

valuenull

value 包含无效的 Unicode 字符。

适用于