Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(Int32, Rune) |
Attempts to create a Rune from a specified signed 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. |
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
The character from which to create the rune.
When this method returns, the rune that corresponds to ch
.
true
if the method succeeded; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
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
The Unicode scalar value.
When this method returns, the rune that corresponds to value
.
true
if the method succeeded; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
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
The Unicode scalar value.
When this method returns, the rune that corresponds to value
.
true
if the method succeeded; otherwise, false
.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
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
The high surrogate of the surrogate pair.
The low surrogate of the surrogate pair.
The rune that corresponds to the specified surrogate pair.
true
if the operation succeeded; false
if the input values don't represent a well-formed UTF-16 surrogate pair.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in