Επεξεργασία

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


Utf8JsonReader.TryGetBytesFromBase64(Byte[]) Method

Definition

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