Amazon.CognitoSync.SyncManager.Internal.SQLiteLocalStorage.GetValueMap C# (CSharp) Метод

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

Retrieves a key-value map from dataset, excluding marked as deleted values.
public GetValueMap ( string identityId, string datasetName ) : string>.Dictionary
identityId string Identity identifier.
datasetName string Dataset name.
Результат string>.Dictionary
        public Dictionary<string, string> GetValueMap(string identityId, string datasetName)
        {
            lock (sqlite_lock)
            {
                Dictionary<string, string> values = new Dictionary<string, string>();
                List<Record> records = GetRecords(identityId, datasetName);

                foreach (Record record in records)
                {
                    if (!record.IsDeleted)
                    {
                        values.Add(record.Key, record.Value);
                    }
                }

                return values;
            }
        }