Example #1
0
        protected virtual object InternalGetProperty(MdbPropertyMapping mdbMapping)
        {
            object result = null;

            if (this.allowItemBind)
            {
                this.InitializeItemIfNecessary();
                result = MdbDocumentAdapter.CallXsoAndMapExceptionsWithReturnValue <object>(this.diagnosticsSession, this.id.MailboxGuid, () => MdbDocumentAdapter.CheckPropertyValue(mdbMapping.GetPropertyValue(this.Item, new MdbDocumentAdapter.MdbDocAdapterPropertyContext
                {
                    MailboxSession = this.Session
                })));
            }
            else if (this.AllPropertiesContained(mdbMapping.StorePropertyDefinitions))
            {
                return(MdbDocumentAdapter.CheckPropertyValue(mdbMapping.GetPropertyValue(this.preloadedProperties)));
            }
            return(result);
        }