Utf8JsonReader.TryGetBytesFromBase64(Byte[]) 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.
Tries to parse the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array and returns a value that indicates whether the operation succeeded.
public:
bool TryGetBytesFromBase64([Runtime::InteropServices::Out] cli::array <System::Byte> ^ % value);
public bool TryGetBytesFromBase64 (out byte[]? value);
public bool TryGetBytesFromBase64 (out byte[] value);
member this.TryGetBytesFromBase64 : Byte[] -> bool
Public Function TryGetBytesFromBase64 (ByRef value As Byte()) As Boolean
Parameters
- value
- Byte[]
When this method returns, contains the decoded binary representation of the Base64 text.
Returns
true
if the entire token value is encoded as valid Base64 text and can be successfully decoded to bytes; otherwise, false
.
Exceptions
The JSON token is not a String.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈