語言

Rune.TryCreate 方法

定義

嘗試從指定有符號整數建立 , Rune 該整數代表 Unicode 純量值。

多載

名稱 Description
TryCreate(Int32, Rune)

嘗試從指定有符號整數建立 , Rune 該整數代表 Unicode 純量值。

TryCreate(Char, Rune)

嘗試從指定字元建立 , Rune 並回傳一個值,表示操作是否成功。

TryCreate(Char, Char, Rune)

嘗試從指定的 UTF-16 代理對建立 , Rune 並回傳一個值,表示操作是否成功。

TryCreate(UInt32, Rune)

嘗試從指定的 32 位元無符號整數(代表 Unicode 純量值)中建立 。Rune

TryCreate(Int32, Rune)

來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs

嘗試從指定有符號整數建立 , Rune 該整數代表 Unicode 純量值。

public:
 static bool TryCreate(int value, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(int value, out System.Text.Rune result);
static member TryCreate : int * Rune -> bool
Public Shared Function TryCreate (value As Integer, ByRef result As Rune) As Boolean

參數

value
Int32

Unicode 標量值。

result
Rune

當此方法返回時,對應的 value符文 。

傳回

true若方法成功;否則,。 false

適用於

TryCreate(Char, Rune)

來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs

嘗試從指定字元建立 , Rune 並回傳一個值,表示操作是否成功。

public:
 static bool TryCreate(char ch, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(char ch, out System.Text.Rune result);
static member TryCreate : char * Rune -> bool
Public Shared Function TryCreate (ch As Char, ByRef result As Rune) As Boolean

參數

ch
Char

用來創造符文的角色。

result
Rune

當此方法返回時,對應的 ch符文 。

傳回

true若方法成功;否則,。 false

適用於

TryCreate(Char, Char, Rune)

來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs

嘗試從指定的 UTF-16 代理對建立 , Rune 並回傳一個值,表示操作是否成功。

public:
 static bool TryCreate(char highSurrogate, char lowSurrogate, [Runtime::InteropServices::Out] System::Text::Rune % result);
public static bool TryCreate(char highSurrogate, char lowSurrogate, out System.Text.Rune result);
static member TryCreate : char * char * Rune -> bool
Public Shared Function TryCreate (highSurrogate As Char, lowSurrogate As Char, ByRef result As Rune) As Boolean

參數

highSurrogate
Char

替代伴侶中的高級替代者。

lowSurrogate
Char

替代伴侶中的低階替代者。

result
Rune

對應於指定替代配對的符文。

傳回

true 若手術成功; false 如果輸入值不代表一個良好形成的 UTF-16 替代對。

適用於

TryCreate(UInt32, Rune)

來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs
來源:
Rune.cs

重要

此 API 不符合 CLS 規範。

嘗試從指定的 32 位元無符號整數(代表 Unicode 純量值)中建立 。Rune

public:
 static bool TryCreate(System::UInt32 value, [Runtime::InteropServices::Out] System::Text::Rune % result);
[System.CLSCompliant(false)]
public static bool TryCreate(uint value, out System.Text.Rune result);
[<System.CLSCompliant(false)>]
static member TryCreate : uint32 * Rune -> bool
Public Shared Function TryCreate (value As UInteger, ByRef result As Rune) As Boolean

參數

value
UInt32

Unicode 標量值。

result
Rune

當此方法返回時,對應的 value符文 。

傳回

true若方法成功;否則,。 false

屬性

適用於