Raven.ManagedStorage.Degenerate.PersistentDictionary.Remove C# (CSharp) Метод

Remove() публичный Метод

public Remove ( JToken key, System.Guid txId ) : bool
key JToken
txId System.Guid
Результат bool
        public bool Remove(JToken key, Guid txId)
        {
            Guid existing;
            if (keysModifiedInTx.TryGetValue(key, out existing) && existing != txId)
                return false;

            operationsInTransactions.GetOrAdd(txId, new List<Command>())
                .Add(new Command
                {
                    Key = key,
                    DictionaryId = DictionaryId,
                    Type = CommandType.Delete
                });

            if (existing != txId) // otherwise we are already there
                keysModifiedInTx.TryAdd(key, txId);

            return true;
        }