コード例 #1
0
        protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object newValue)
        {
            int num = propertyBag.GetValueOrDefault <int>(InternalSchema.InferenceUserCapabilityFlags, 0);

            if ((bool)newValue)
            {
                num |= this.propertyFlag;
            }
            else
            {
                num &= ~this.propertyFlag;
            }
            propertyBag.SetOrDeleteProperty(InternalSchema.InferenceUserCapabilityFlags, (num == 0) ? null : num);
        }
コード例 #2
0
        protected sealed override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value)
        {
            if (value == null)
            {
                propertyBag.Delete(InternalSchema.MapiConversationFamilyId);
                return;
            }
            ConversationId conversationId = value as ConversationId;

            if (conversationId == null)
            {
                throw new ArgumentException("value", "Must be null or ConversationId");
            }
            propertyBag.SetOrDeleteProperty(InternalSchema.MapiConversationFamilyId, conversationId.GetBytes());
        }