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

true 表示 value 是正規化格式 C,否則為 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 字元。

適用於