# EmailStoreConfigurationDictionary

Lossless typed editor for the documented Outlook roaming dictionary XML schema. Unsupported entries and unknown XML nodes are retained.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreConfigurationDictionary.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L60)

**Modifiers**

sealed

Lossless typed editor for the documented Outlook roaming dictionary XML schema. Unsupported entries and unknown XML nodes are retained.

## Inheritance

- object
- EmailStoreConfigurationDictionary

## 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 3

- Property [EmailStoreConfigurationData.Dictionary](/api/email/officeimo-email-store-emailstoreconfigurationdata/#property-dictionary)
- Method [EmailStoreConfigurationDictionary.Create](/api/email/officeimo-email-store-emailstoreconfigurationdictionary/#method-create-string)
- Method [EmailStoreConfigurationDictionary.Parse](/api/email/officeimo-email-store-emailstoreconfigurationdictionary/#method-parse-byte-int32)

Filter members 

Show inherited

## Methods

`public static EmailStoreConfigurationDictionary Create(string producerVersion = "OfficeIMO.1")` [#](#method-create-string)

[EmailStoreConfigurationDictionary.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L60)

Creates an empty dictionary with an OfficeIMO producer version.

Parameters

**producerVersion string = "OfficeIMO.1" optional**

Returns

`EmailStoreConfigurationDictionary`

`public static EmailStoreConfigurationDictionary Parse(byte[] bytes, int maxXmlBytes = 4194304)` [#](#method-parse-byte-int32)

[EmailStoreConfigurationDictionary.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L70)

Parses one bounded PidTagRoamingDictionary stream.

Parameters

**bytes byte[] required**

**maxXmlBytes int = 4194304 optional**

Returns

`EmailStoreConfigurationDictionary`

`public bool Remove(string key)` [#](#method-remove-string)

[EmailStoreConfigurationDictionary.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L130)

Removes one exact dictionary key.

Parameters

**key string required**

Returns

`bool`

Set 3 overloads

`public void Set(string key, bool value)` [#](#method-set-string-boolean)

[EmailStoreConfigurationDictionary.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L116)

Creates or replaces a Boolean entry.

Parameters

**key string required**

**value bool required**

`public void Set(string key, int value)` [#](#method-set-string-int32)

[EmailStoreConfigurationDictionary.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L120)

Creates or replaces a signed Int32 entry.

Parameters

**key string required**

**value int required**

`public void Set(string key, string value)` [#](#method-set-string-string)

[EmailStoreConfigurationDictionary.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L124)

Creates or replaces a Unicode string entry.

Parameters

**key string required**

**value string required**

`public byte[] ToXml()` [#](#method-toxml)

[EmailStoreConfigurationDictionary.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L139)

Serializes the current lossless dictionary XML.

Returns

`byte[]`

`public bool TryGet(string key, out EmailStoreConfigurationValue? value)` [#](#method-tryget-string-officeimo-email-store-emailstoreconfigurationvalue)

[EmailStoreConfigurationDictionary.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L111)

Gets one decoded entry.

Parameters

**key string required**

**value OfficeIMO.Email.Store.EmailStoreConfigurationValue? required**

Returns

`bool`

## 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 string? ProducerVersion { get; }` [#](#property-producerversion)

[EmailStoreConfigurationDictionary.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L80)

Producer/version string declared by the dictionary.

`public IReadOnlyDictionary<string, EmailStoreConfigurationValue> Entries { get; }` [#](#property-entries)

[EmailStoreConfigurationDictionary.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L85)

Decoded entries keyed case-sensitively as required by the XML uniqueness contract.

`public bool IsProtocolEnvelopeValid { get; }` [#](#property-isprotocolenvelopevalid)

[EmailStoreConfigurationDictionary.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/AssociatedData/EmailStoreConfigurationDictionary.cs#L98)

True when the envelope, producer version, keys, and all values use supported valid encodings.

<!-- PowerForge markdown artifact sha256:8CE587F526C964B1F60970814C7F10486ADAA80382B74D39E2427EB4FCAB4AE4 -->
