Class
HtmlDataUri
OfficeIMO.Html
Media-neutral data URI with bounded-size inspection and byte decoding.
Inheritance
- object
- HtmlDataUri
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 1
- Method HtmlDataUri.TryParse
Methods
public string DecodeText(IHtmlEncodingProvider? encodingProvider = null) #Decodes the payload using its declared charset, or UTF-8 when no charset is declared.
Parameters
- encodingProvider OfficeIMO.Html.Dom.IHtmlEncodingProvider? = null
Returns
stringpublic long EstimateDecodedByteCount() #Calculates decoded byte count without allocating the decoded payload.
Returns
longpublic bool TryDecodeBytes(out byte[] bytes) #Attempts to decode the payload as bytes.
Parameters
- bytes byte[]
Returns
boolpublic bool TryDecodeText(out string text, IHtmlEncodingProvider? encodingProvider = null) #Attempts to decode the payload using its declared charset, or UTF-8 when none is declared.
Parameters
- text string
- encodingProvider OfficeIMO.Html.Dom.IHtmlEncodingProvider? = null
Returns
boolpublic bool TryEstimateDecodedByteCount(out long byteCount) #Attempts to calculate decoded byte count without allocating the decoded payload.
Parameters
- byteCount long
Returns
boolpublic static bool TryParse(string? source, out HtmlDataUri dataUri) #Tries to parse a data URI with an explicit media type.
Parameters
- source string?
- dataUri OfficeIMO.Html.HtmlDataUri
Returns
bool