Guid.TryFormat Method
Definition
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.
Overloads
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>) | |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>) |
Tries to format the current GUID instance into the provided character span. |
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>)
- Source:
- Guid.cs
- Source:
- Guid.cs
public bool TryFormat (Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format = default);
member this.TryFormat : Span<byte> * int * ReadOnlySpan<char> -> bool
Public Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As ReadOnlySpan(Of Char) = Nothing) As Boolean
Parameters
- bytesWritten
- Int32
- format
- ReadOnlySpan<Char>
Returns
Applies to
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>)
- Source:
- Guid.cs
- Source:
- Guid.cs
- Source:
- Guid.cs
Tries to format the current GUID instance into the provided character span.
public bool TryFormat (Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default);
member this.TryFormat : Span<char> * int * ReadOnlySpan<char> -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer, Optional format As ReadOnlySpan(Of Char) = Nothing) As Boolean
Parameters
- charsWritten
- Int32
When this method returns, contains the number of characters written into the span.
- format
- ReadOnlySpan<Char>
A read-only span containing the character representing one of the following specifiers that indicates the exact format to use when interpreting input
: "N", "D", "B", "P", or "X".
Returns
true
if the formatting operation was successful; false
otherwise.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기