コード例 #1
0
 public KeyValuePair <string, string>[] GetAllMetadata()
 {
     KeyValuePair <string, string>[] ret = null;
     using (var searcher = new CacheEntryMetadataSearcher((x, y) => true))
     {
         _cacheEntryDescriptor.VisitMetaData(searcher);
         ret = searcher.GetResult();
     }
     return(ret);
 }
		public KeyValuePair<string,string>[] SearchInMetadata(Func<string,string,bool> predicate)
		{
			KeyValuePair<string, string>[] ret = null;
			using (var searcher = new CacheEntryMetadataSearcher(predicate))
			{
				_cacheEntryDescriptor.VisitMetaData(searcher);
				ret = searcher.GetResult();
			}
			return ret;
		}