DataUrl.TryDecodeBytes 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
| Name | Description |
|---|---|
| TryDecodeBytes(String, Byte[]) |
Attempts to decode the base64 payload from a data URL string. |
| TryDecodeBytes(Uri, Byte[]) |
Attempts to decode the base64 payload from a data URL Uri. |
TryDecodeBytes(String, Byte[])
- Source:
- DataUrl.cs
Attempts to decode the base64 payload from a data URL string.
public static bool TryDecodeBytes(string? dataUrl, out byte[] bytes);
static member TryDecodeBytes : string * Byte[] -> bool
Public Shared Function TryDecodeBytes (dataUrl As String, ByRef bytes As Byte()) As Boolean
Parameters
- dataUrl
- String
A data URL string, or null.
- bytes
- Byte[]
When this method returns true, contains the decoded bytes.
Returns
true if decoding succeeded; otherwise, false.
Applies to
TryDecodeBytes(Uri, Byte[])
- Source:
- DataUrl.cs
Attempts to decode the base64 payload from a data URL Uri.
public static bool TryDecodeBytes(Uri? uri, out byte[] bytes);
static member TryDecodeBytes : Uri * Byte[] -> bool
Public Shared Function TryDecodeBytes (uri As Uri, ByRef bytes As Byte()) As Boolean
Parameters
- uri
- Uri
A data URL, or null.
- bytes
- Byte[]
When this method returns true, contains the decoded bytes.
Returns
true if decoding succeeded; otherwise, false.