Ejemplo n.º 1
0
        private static T ReadObjectFromMessage(MapiMessage mapiMessage, bool throwOnDeserializationError)
        {
            T result;

            using (MapiStream mapiStream = mapiMessage.OpenStream(PropTag.Body, OpenPropertyFlags.BestAccess))
            {
                result = MoveObjectInfo <T> .DeserializeFromStream(mapiStream, throwOnDeserializationError);
            }
            return(result);
        }