Exemplo n.º 1
0
        protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value)
        {
            string text = value as string;

            if (text == null)
            {
                throw new ArgumentNullException("value");
            }
            SubjectProperty.ModifySubjectProperty(propertyBag, this.nativeProperty, text);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 internal void SetSubjectProperty(NativeStorePropertyDefinition property, string value)
 {
     this.CheckDisposed("SetSubjectProperty");
     SubjectProperty.ModifySubjectProperty(CoreObject.GetPersistablePropertyBag(this.coreItem), property, value);
 }
Exemplo n.º 4
0
 internal static void ModifySubjectProperty(PropertyBag propertyBag, NativeStorePropertyDefinition property, string value)
 {
     SubjectProperty.ModifySubjectProperty((PropertyBag.BasicPropertyStore)propertyBag, property, value);
 }
Exemplo n.º 5
0
 internal static void ModifySubjectProperty(Item item, NativeStorePropertyDefinition property, string value)
 {
     SubjectProperty.ModifySubjectProperty(item.PropertyBag, property, value);
 }