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); }
internal static void TruncateSubject(Item item, int limit) { SubjectProperty.TruncateSubject(item.PropertyBag, limit); }