API Reference
Class
HtmlResolvedResource
Immutable bytes returned by an application-supplied HTML resource resolver.
Inheritance
- Object
- HtmlResolvedResource
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method HtmlResourceSession.TryGet
Constructors
HtmlResolvedResource 2 overloads
public HtmlResolvedResource(Byte[] bytes, String contentType) #Creates a resolved resource snapshot.
Parameters
- bytes System.Byte[]
- contentType System.String
public HtmlResolvedResource(Byte[] bytes, String contentType, Uri finalUri, Int32 redirectCount = 0) #Creates a resolved resource snapshot with optional redirect provenance. Network-backed resolvers should report the final URI and redirect count so archive and host policies can enforce their redirect boundary.
Parameters
- bytes System.Byte[]
- contentType System.String
- finalUri System.Uri
- redirectCount System.Int32 = 0
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Byte[] Bytes { get; } #Resolved resource bytes.
public Int64 Length { get; } #Resolved resource length in bytes.
public String ContentType { get; } #Declared media type.
public Uri FinalUri { get; } #Final URI after redirects, when the resolver can report it.
public Int32 RedirectCount { get; } #Number of redirects followed by the resolver.
public Boolean HasRedirectProvenance { get; } #Whether the resolver explicitly reported final-URI and redirect metadata.