Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetFileNames() [2/2]

string[] System.IO.IsolatedStorage.IsolatedStorageFile.GetFileNames ( string searchPattern)
inline

Definition at line 199 of file IsolatedStorageFile.cs.

200 {
201 if (searchPattern == null)
202 {
203 throw new ArgumentNullException("searchPattern");
204 }
206 try
207 {
208 return (from f in Directory.EnumerateFiles(RootDirectory, searchPattern)
209 select Path.GetFileName(f)).ToArray();
210 }
211 catch (UnauthorizedAccessException rootCause)
212 {
214 }
215 }
static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
static string IsolatedStorage_Operation
Definition SR.cs:22
Definition SR.cs:7

References System.IO.IsolatedStorage.IsolatedStorageFile.EnsureStoreIsValid(), System.IO.Directory.EnumerateFiles(), System.IO.Path.GetFileName(), System.IO.IsolatedStorage.IsolatedStorageFile.GetIsolatedStorageException(), System.SR.IsolatedStorage_Operation, and System.IO.IsolatedStorage.IsolatedStorageFile.RootDirectory.