Επεξεργασία

Κοινή χρήση μέσω


Rune.TryCreate Method

Definition

Overloads

TryCreate(Char, Rune)

Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded.

TryCreate(UInt32, Rune)

Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value.

TryCreate(Char, Char, Rune)

Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful.

TryCreate(Int32, Rune)

Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value.

TryCreate(Char, Rune)

Source:
Rune.cs
Source:
Rune.cs
Source:
Rune.cs

Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded.

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

Parameters

ch
Char

The character from which to create the rune.

result
Rune

When this method returns, the rune that corresponds to ch.

Returns

true if the method succeeded; otherwise, false.

Applies to

TryCreate(UInt32, Rune)

Source:
Rune.cs
Source:
Rune.cs
Source:
Rune.cs

Important

This API is not CLS-compliant.

Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value.

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

Parameters

value
UInt32

The Unicode scalar value.

result
Rune

When this method returns, the rune that corresponds to value.

Returns

true if the method succeeded; otherwise, false.

Attributes

Applies to

TryCreate(Char, Char, Rune)

Source:
Rune.cs
Source:
Rune.cs
Source:
Rune.cs

Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful.

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

Parameters

highSurrogate
Char

The high surrogate of the surrogate pair.

lowSurrogate
Char

The low surrogate of the surrogate pair.

result
Rune

The rune that corresponds to the specified surrogate pair.

Returns

true if the operation succeeded; false if the input values don't represent a well-formed UTF-16 surrogate pair.

Applies to

TryCreate(Int32, Rune)

Source:
Rune.cs
Source:
Rune.cs
Source:
Rune.cs

Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value.

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

Parameters

value
Int32

The Unicode scalar value.

result
Rune

When this method returns, the rune that corresponds to value.

Returns

true if the method succeeded; otherwise, false.

Applies to