Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MapiPropertyPatch

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
c47203b3ce89 with working tree changes
Modifiers
sealed

Ordered typed changes applied after normal semantic projection when an EmailDocument is written. This lets advanced callers override or remove exact MAPI properties without replacing unrelated raw state.

Inheritance

  • object
  • MapiPropertyPatch

Usage

Explore 8 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 3

Constructors

public MapiPropertyPatch() #

Methods

public MapiPropertyPatch Append(MapiPropertyPatch patch) #

Appends a snapshot of another patch's ordered changes.

Parameters

patch OfficeIMO.Email.MapiPropertyPatch required
public void Apply(MapiPropertyBag bag) #

Applies the patch directly to a mutable raw property bag.

Parameters

bag OfficeIMO.Email.MapiPropertyBag required
public MapiPropertyPatch Remove(MapiPropertyKey key) #

Stages removal of every raw value with one canonical identity.

Parameters

key OfficeIMO.Email.MapiPropertyKey required
Set``1 2 overloads
public MapiPropertyPatch Set<T>(MapiPropertyKey<T?> key, T? value, uint? flags = null) #

Stages a typed set using the key's preferred wire type.

Type Parameters

T

Parameters

key OfficeIMO.Email.MapiPropertyKey<T?> required
value T? required
flags uint? = null optional
public MapiPropertyPatch Set<T>(MapiPropertyKey<T?> key, T? value, MapiPropertyType wireType, uint? flags = null) #

Stages a typed set using an explicitly accepted wire type.

Type Parameters

T

Parameters

key OfficeIMO.Email.MapiPropertyKey<T?> required
value T? required
wireType OfficeIMO.Email.MapiPropertyType required
flags uint? = null optional

Properties

public IReadOnlyList<MapiPropertyPatchChange> Changes { get; } #

Ordered immutable view of the staged changes.

public bool IsEmpty { get; } #

Whether the patch has no changes.