예제 #1
0
        public PSTRecipient(int recipientNumber, PSTPropertyBag propertyBag)
        {
            this.propertyBag = propertyBag;
            PropertyValue property = this.propertyBag.GetProperty(PropertyTag.RowId);

            if (property.IsError)
            {
                property = new PropertyValue(PropertyTag.RowId, recipientNumber);
            }
            this.propertyBag.SetProperty(property);
        }
예제 #2
0
        private static SortedList <PropertyTag, object> FilteredValues(PSTPropertyBag propertyBag)
        {
            SortedList <PropertyTag, object> sortedList = new SortedList <PropertyTag, object>();

            foreach (PropertyTag key in propertyBag.values.Keys)
            {
                if (key.PropertyType == PropertyType.Error)
                {
                    ErrorCode errorCode = (ErrorCode)propertyBag.values[key];
                    if (errorCode == (ErrorCode)2147746063U || errorCode == (ErrorCode)2147942405U)
                    {
                        continue;
                    }
                }
                sortedList.Add(key, propertyBag.values[key]);
            }
            return(sortedList);
        }