JsonElement.TryGetBytesFromBase64(Byte[]) Method
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.
Attempts to represent the current JSON string as a byte array, assuming that it is Base64 encoded.
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
- value
- Byte[]
If the method succeeds, contains the decoded binary representation of the Base64 text.
true
if the entire token value is encoded as valid Base64 text and can be successfully decoded to bytes; otherwise, false
.
The parent JsonDocument has been disposed.
This method does not create a byte array representation of values other than Base64 encoded JSON strings.
Продукт | Версії |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: