示例#1
0
        internal static bool TruncateSubject(PropertyBag propertyBag, int limit)
        {
            bool   result = false;
            string text   = propertyBag.TryGetProperty(InternalSchema.Subject) as string;

            if (text != null && SubjectProperty.TruncateSubject(ref text, limit))
            {
                SubjectProperty.ModifySubjectProperty((PropertyBag.BasicPropertyStore)propertyBag, InternalSchema.MapiSubject, text);
                result = true;
            }
            return(result);
        }
示例#2
0
 internal static void TruncateSubject(Item item, int limit)
 {
     SubjectProperty.TruncateSubject(item.PropertyBag, limit);
 }