public static bool ExistRecordStoreAll(string resName) { string[] recordStores = RecordStore.ListRecordStores(); if (recordStores == null) { return(false); } for (int i = 0; i < recordStores.Length; i++) { if (recordStores[i].Equals(resName)) { return(true); } } return(false); }