# OfficeRemoteImageLoadOptions

Controls bounded HTTP and HTTPS image retrieval.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeRemoteImageLoadOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L11)

**Modifiers**

sealed

Controls bounded HTTP and HTTPS image retrieval.

## Inheritance

- object
- OfficeRemoteImageLoadOptions

Filter members 

Show inherited

## Constructors

`public OfficeRemoteImageLoadOptions()` [#](#constructor-ctor)

[OfficeRemoteImageLoadOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L11)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public long MaximumBytes { get; set; }` [#](#property-maximumbytes)

[OfficeRemoteImageLoadOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L11)

Maximum response size in bytes.

`public TimeSpan Timeout { get; set; }` [#](#property-timeout)

[OfficeRemoteImageLoadOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L14)

Maximum time allowed for the complete request.

`public int MaximumRedirects { get; set; }` [#](#property-maximumredirects)

[OfficeRemoteImageLoadOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L17)

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

`public bool AllowPrivateNetworkAddresses { get; set; }` [#](#property-allowprivatenetworkaddresses)

[OfficeRemoteImageLoadOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L24)

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; }` [#](#property-allowedhosts)

[OfficeRemoteImageLoadOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L30)

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` [#](#field-defaultmaximumbytes)

[OfficeRemoteImageLoadOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRemoteImageLoadOptions.cs#L8)

Default maximum response size: 10 MiB.

Value: `10485760`

<!-- PowerForge markdown artifact sha256:67EF527B8F3693FFC3431E150E76C8FA9164140E1285E5D9E16C846E6AEA4318 -->
