Rune.TryCreate Método
Definição
Sobrecargas
| TryCreate(Char, Rune) |
Tenta criar um Rune do caractere especificado e retorna um valor que indica se a operação foi bem-sucedida.Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded. |
| TryCreate(Int32, Rune) |
Tenta criar um Rune de um inteiro com sinal especificado representando um valor escalar Unicode.Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value. |
| TryCreate(UInt32, Rune) |
Tenta criar um Rune do inteiro sem sinal de 32 bits especificado representando um valor escalar Unicode.Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value. |
| TryCreate(Char, Char, Rune) |
Tenta criar um Rune do par alternativo UTF-16 especificado e retorna um valor que indica se a operação foi bem-sucedida.Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful. |
TryCreate(Char, 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
Parâmetros
- ch
- Char
O caractere do qual criar o símbolo.The character from which to create the rune.
- result
- Rune
Quando este método é retornado, o símbolo correspondente a ch.When this method returns, the rune that corresponds to ch.
Retornos
true, se o método for bem-sucedido. Caso contrário, false.true if the method succeeded; otherwise, false.
Aplica-se a
TryCreate(Int32, Rune)
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
Parâmetros
- value
- Int32
O valor escalar Unicode.The Unicode scalar value.
- result
- Rune
Quando este método é retornado, o símbolo correspondente a value.When this method returns, the rune that corresponds to value.
Retornos
true, se o método for bem-sucedido. Caso contrário, false.true if the method succeeded; otherwise, false.
Aplica-se a
TryCreate(UInt32, Rune)
Importante
Esta API não está em conformidade com CLS.
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
Parâmetros
- value
- UInt32
O valor escalar Unicode.The Unicode scalar value.
- result
- Rune
Quando este método é retornado, o símbolo correspondente a value.When this method returns, the rune that corresponds to value.
Retornos
true, se o método for bem-sucedido. Caso contrário, false.true if the method succeeded; otherwise, false.
- Atributos
Aplica-se a
TryCreate(Char, Char, 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
Parâmetros
- highSurrogate
- Char
A alternativa superior do par alternativo.The high surrogate of the surrogate pair.
- lowSurrogate
- Char
A alternativa inferior do par alternativo.The low surrogate of the surrogate pair.
- result
- Rune
O símbolo que corresponde ao par alternativo especificado.The rune that corresponds to the specified surrogate pair.
Retornos
true se a operação foi bem-sucedida; false se os valores de entrada não representam um par alternativo UTF-16 bem formado.true if the operation succeeded; false if the input values don't represent a well-formed UTF-16 surrogate pair.