MapiPropertyPatch
OfficeIMO.Email
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.
Returned or exposed by 5
- Property EmailDocument.MapiWritePatch
- Method MapiPropertyPatch.Append
- Method MapiPropertyPatch.Remove
- Method MapiPropertyPatch.Set``1
- Property EmailStoreItemPatch.Properties
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
Returns
MapiPropertyPatchpublic void Apply(MapiPropertyBag bag) #Applies the patch directly to a mutable raw property bag.
Parameters
- bag OfficeIMO.Email.MapiPropertyBag
public MapiPropertyPatch Remove(MapiPropertyKey key) #Stages removal of every raw value with one canonical identity.
Parameters
- key OfficeIMO.Email.MapiPropertyKey
Returns
MapiPropertyPatchpublic 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?>
- value T?
- flags uint? = null
Returns
MapiPropertyPatchpublic 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?>
- value T?
- wireType OfficeIMO.Email.MapiPropertyType
- flags uint? = null
Returns
MapiPropertyPatchInherited Methods
Properties
public IReadOnlyList<MapiPropertyPatchChange> Changes { get; } #Ordered immutable view of the staged changes.