MhtmlRemoteResourcePolicy
OfficeIMO.Mhtml
Explicit policy for resources absent from an MHTML archive and delegated to a caller resolver. Embedded MIME resources are not network resources and remain governed by the shared HTML byte/count limits.
Inheritance
- object
- MhtmlRemoteResourcePolicy
Usage
Explore 3 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.
Returned or exposed by 2
Accepted by parameters 1
Constructors
public MhtmlRemoteResourcePolicy() #Methods
public static MhtmlRemoteResourcePolicy CreateEmbeddedOnlyProfile() #Creates the default offline profile. No remote fallback resolver is invoked.
Returns
MhtmlRemoteResourcePolicypublic static MhtmlRemoteResourcePolicy CreateSameOriginProfile(int maximumRedirects = 3) #Creates a bounded same-origin remote profile. Additional origins can be added through MhtmlRemoteResourcePolicy.AllowedOrigins using absolute HTTP or HTTPS origins.
Parameters
- maximumRedirects int = 3
Returns
MhtmlRemoteResourcePolicyInherited Methods
Properties
public bool AllowRemoteResources { get; set; } #Whether a caller-supplied resolver may be invoked for HTTP or HTTPS resources.
public bool AllowSameOrigin { get; set; } #Whether the archive root origin is allowed. Defaults to false in the offline profile.
public int MaximumRedirects { get; set; } #Maximum redirects a resolver may follow. Defaults to zero.
public MhtmlRemoteResourceFetcher? ResourceFetcher { get; set; } #Optional one-hop remote fetcher. It must return redirects without following them; OfficeIMO validates each next URI before invoking the fetcher again.
public ISet<string> AllowedOrigins { get; } #Additional allowed origins, expressed as absolute HTTP or HTTPS URI strings.
public long MaximumResourceBytes { get; set; } #Maximum bytes accepted from one resource while remote fallback is enabled.
public long MaximumTotalResourceBytes { get; set; } #Maximum total resource bytes accepted during one render while remote fallback is enabled.
public int MaximumResourceCount { get; set; } #Maximum resources accepted during one render while remote fallback is enabled.
public int MaximumResourceRequests { get; set; } #Maximum resolver invocations attempted during one render while remote fallback is enabled.
public TimeSpan ResourceTimeout { get; set; } #Maximum duration of one resolver invocation while remote fallback is enabled.