public override bool UpdatePropertyBag(StoreObjectId itemId, IStorePropertyBag bag) { for (int i = 0; i < this.storePropertyBags.Count; i++) { if (ConversationTreeNode.RetrieveStoreObjectId(this.storePropertyBags[i]).Equals(itemId)) { this.storePropertyBags[i] = bag; return(true); } } return(false); }
public override List <StoreObjectId> ToListStoreObjectId() { if (this.ids == null) { this.ids = new List <StoreObjectId>(); if (this.HasData) { foreach (IStorePropertyBag bag in this.StorePropertyBags) { this.ids.Add(ConversationTreeNode.RetrieveStoreObjectId(bag)); } } } return(this.ids); }
public override bool TryGetPropertyBag(StoreObjectId itemId, out IStorePropertyBag bag) { bag = null; if (!this.HasData || itemId == null) { return(false); } foreach (IStorePropertyBag storePropertyBag in this.StorePropertyBags) { if (itemId.Equals(ConversationTreeNode.RetrieveStoreObjectId(storePropertyBag))) { bag = storePropertyBag; return(true); } } return(false); }