API Reference
Class
HtmlDataUri
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) #Returns:
StringDecodes the payload using its declared charset, or UTF-8 when no charset is declared.
Parameters
- encodingProvider OfficeIMO.Html.Dom.IHtmlEncodingProvider? = null
public Int64 EstimateDecodedByteCount() #Returns:
Int64Calculates decoded byte count without allocating the decoded payload.
public Boolean TryDecodeBytes(out Byte[] bytes) #Returns:
BooleanAttempts to decode the payload as bytes.
Parameters
- bytes System.Byte[]
public Boolean TryDecodeText(out String text, IHtmlEncodingProvider? encodingProvider = null) #Returns:
BooleanAttempts to decode the payload using its declared charset, or UTF-8 when none is declared.
Parameters
- text System.String
- encodingProvider OfficeIMO.Html.Dom.IHtmlEncodingProvider? = null
public Boolean TryEstimateDecodedByteCount(out Int64 byteCount) #Returns:
BooleanAttempts to calculate decoded byte count without allocating the decoded payload.
Parameters
- byteCount System.Int64
public static Boolean TryParse(String? source, out HtmlDataUri dataUri) #Returns:
BooleanTries to parse a data URI with an explicit media type.
Parameters
- source System.String?
- dataUri OfficeIMO.Html.HtmlDataUri
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?