Exemple #1
0
        private static PropertyFlags CalculatePropertyTagPropertyFlags(string propertyName, Guid guid, PropertyFlags userFlags, bool isCustom)
        {
            PropertyFlags propertyFlags = NativeStorePropertyDefinition.CalculatePropertyTagPropertyFlags(userFlags, isCustom);

            if (guid == WellKnownPropertySet.InternetHeaders && MimeConstants.IsInReservedHeaderNamespace(propertyName))
            {
                propertyFlags &= ~PropertyFlags.Transmittable;
            }
            return(propertyFlags);
        }
Exemple #2
0
 private GuidIdPropertyDefinition(string displayName, Type propertyType, PropType mapiPropertyType, GuidIdPropertyDefinition.GuidIdKey key, PropertyFlags flags, bool isCustom, PropertyDefinitionConstraint[] constraints) : base(PropertyTypeSpecifier.GuidId, displayName, propertyType, mapiPropertyType, NativeStorePropertyDefinition.CalculatePropertyTagPropertyFlags(flags, isCustom), constraints)
 {
     this.InternalKey = key;
     this.hashCode    = (this.Guid.GetHashCode() ^ this.Id ^ (int)base.MapiPropertyType);
 }