StringNormalizationExtensions.IsNormalized 方法

定義

指出字串是否正規化。Indicates whether a string is normalized.

多載

IsNormalized(String)

指出指定的字串是否為 Unicode 正規化格式 C。Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm)

指出字串是否為指定的 Unicode 正規化格式。Indicates whether a string is in a specified Unicode normalization form.

IsNormalized(String)

指出指定的字串是否為 Unicode 正規化格式 C。Indicates whether the specified string is in Unicode normalization form C.

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

參數

value
String

字串。A string.

傳回

true 表示 value 是正規化格式 C,否則為 falsetrue if value is in normalization form C; otherwise, false.

例外狀況

valuenullvalue is null.

value 包含無效的 Unicode 字元。value contains invalid Unicode characters.

IsNormalized(String, NormalizationForm)

指出字串是否為指定的 Unicode 正規化格式。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);
[System.Security.SecurityCritical]
public static bool IsNormalized (this string value, System.Text.NormalizationForm normalizationForm);
static member IsNormalized : string * System.Text.NormalizationForm -> bool

參數

value
String

字串。A string.

normalizationForm
NormalizationForm

Unicode 正規化格式。A Unicode normalization form.

傳回

如果 value 是正規化格式 normalizationForm,則為 true;否則為 falsetrue if value is in normalization form normalizationForm; otherwise, false.

屬性

例外狀況

valuenullvalue is null.

value 包含無效的 Unicode 字元。value contains invalid Unicode characters.

適用於