# OfficeVbaWriteOptions

Controls explicit signature invalidation and bounded VBA output.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeVbaModels.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L59)

**Modifiers**

sealed

Controls explicit signature invalidation and bounded VBA output.

## Inheritance

- object
- OfficeVbaWriteOptions

## 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 [OfficeVbaProject.Write](/api/core/officeimo-officevbaproject/#method-write-officeimo-officevbawriteoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OfficeVbaModels.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L59)

## 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 bool AllowSignatureRemoval { get; set; }` [#](#property-allowsignatureremoval)

[OfficeVbaModels.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L57)

Gets or sets whether a document adapter may remove its existing VBA signatures; defaults to rejection.

`public int MaximumProjectBytes { get; set; }` [#](#property-maximumprojectbytes)

[OfficeVbaModels.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L59)

Gets or sets the maximum complete compound-file output size; defaults to 64 MiB.

`public int MaximumRecoveryBytes { get; set; }` [#](#property-maximumrecoverybytes)

[OfficeVbaModels.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L61)

Gets or sets the aggregate existing VBA payload and child-part bytes retained for document-adapter recovery; defaults to 64 MiB.

`public int MaximumExpandedBytes { get; set; }` [#](#property-maximumexpandedbytes)

[OfficeVbaModels.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/Documents/Vba/OfficeVbaModels.cs#L63)

Gets or sets the aggregate expanded directory and source limit; defaults to 64 MiB.

<!-- PowerForge markdown artifact sha256:BD4F8E04AFF23C14ACC6C3F3B4D7426BD8E6EFB5525BC59C3FDF30ECF8716C7F -->
