API Reference
MapiPropertyExtensions
Convenience lookup APIs for retained standard and named MAPI properties.
Inheritance
- Object
- MapiPropertyExtensions
Methods
public static MapiProperty? GetMapiProperty(IEnumerable<MapiProperty> properties, MapiPropertyKey key) #MapiProperty?Finds the last property matching a typed key's identity and accepted wire types.
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- key OfficeIMO.Email.MapiPropertyKey
public static MapiProperty? GetMapiProperty(IEnumerable<MapiProperty> properties, UInt16 propertyId) #MapiProperty?Finds the last standard property with the specified property identifier.
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertyId System.UInt16
public static MapiProperty? GetMapiProperty(IEnumerable<MapiProperty> properties, Guid propertySet, UInt32 localId) #MapiProperty?Finds the last numeric named property with the specified canonical identity.
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertySet System.Guid
- localId System.UInt32
public static MapiProperty? GetMapiProperty(IEnumerable<MapiProperty> properties, Guid propertySet, String name) #MapiProperty?Finds the last string named property with the specified canonical identity.
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertySet System.Guid
- name System.String
public static T? GetMapiValueOrDefault<T>(IEnumerable<MapiProperty> properties, MapiPropertyKey<T?> key) #T?Reads a typed property, or the managed default when it is absent or incompatible.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- key OfficeIMO.Email.MapiPropertyKey<T?>
public static T? GetMapiValue<T>(IEnumerable<MapiProperty> properties, UInt16 propertyId) #T?Gets a typed standard property value, or the default value when it is absent or has another type.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertyId System.UInt16
public static T? GetMapiValue<T>(IEnumerable<MapiProperty> properties, Guid propertySet, UInt32 localId) #T?Gets a typed numeric named property value, or the default value when it is absent or has another type.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertySet System.Guid
- localId System.UInt32
public static T? GetMapiValue<T>(IEnumerable<MapiProperty> properties, Guid propertySet, String name) #T?Gets a typed string named property value, or the default value when it is absent or has another type.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- propertySet System.Guid
- name System.String
public static T? GetNullableMapiValue<T>(IEnumerable<MapiProperty> properties, MapiPropertyKey<T> key) #T?Reads a value-type property, or null when it is absent or incompatible.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- key OfficeIMO.Email.MapiPropertyKey<T>
public static MapiProperty? GetRawMapiProperty(IEnumerable<MapiProperty> properties, MapiPropertyKey key) #MapiProperty?Finds the last property matching a typed key's identity without checking its wire type.
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- key OfficeIMO.Email.MapiPropertyKey
public static Boolean TryGetMapiValue<T>(IEnumerable<MapiProperty> properties, MapiPropertyKey<T?> key, out T? value) #BooleanAttempts to read a property using a typed key.
Type Parameters
- T
Parameters
- properties System.Collections.Generic.IEnumerable<OfficeIMO.Email.MapiProperty>
- key OfficeIMO.Email.MapiPropertyKey<T?>
- value T?
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?