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) #MapiPropertyFinds 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) #MapiPropertyFinds 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) #MapiPropertyFinds 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) #MapiPropertyFinds 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) #TReads 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{``0}
public static T GetMapiValue<T>(IEnumerable<MapiProperty> properties, UInt16 propertyId) #TGets 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) #TGets 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) #TGets 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 Nullable<T> GetNullableMapiValue<T>(IEnumerable<MapiProperty> properties, MapiPropertyKey<T> key) #Nullable<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{``0}
public static MapiProperty GetRawMapiProperty(IEnumerable<MapiProperty> properties, MapiPropertyKey key) #MapiPropertyFinds 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{``0}
- value ``0@
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object