Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRemoteImageLoadOptions

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Controls bounded HTTP and HTTPS image retrieval.

Inheritance

  • object
  • OfficeRemoteImageLoadOptions

Constructors

public OfficeRemoteImageLoadOptions() #

Properties

public long MaximumBytes { get; set; } #

Maximum response size in bytes.

public TimeSpan Timeout { get; set; } #

Maximum time allowed for the complete request.

public int MaximumRedirects { get; set; } #

Maximum number of same-origin redirects that may be followed.

public bool AllowPrivateNetworkAddresses { get; set; } #

Allows loopback, private, link-local, multicast, and otherwise non-public destination addresses. The secure default is false; enable this only for explicitly trusted intranet image sources.

public ISet<string> AllowedHosts { get; } #

Optional exact host allowlist. When non-empty, every initial and redirected destination must match one of these host names (case-insensitive).

Fields

public const long DefaultMaximumBytes #

Default maximum response size: 10 MiB.

Value: 10485760