63 [Obsolete(
"IsolatedStorage.MaximumSize has been deprecated because it is not CLS Compliant. To get the maximum size use IsolatedStorage.Quota instead.")]
66 public override long Quota =>
long.MaxValue;
71 [Obsolete(
"IsolatedStorage.CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorage.UsedSize instead.")]
81 stringBuilder.
Append(base.IdentityHash);
85 stringBuilder.
Append(
"AppFiles");
89 stringBuilder.
Append(
"Files");
93 stringBuilder.
Append(
"AssemFiles");
201 if (searchPattern ==
null)
224 if (searchPattern ==
null)
270 if (path.Length == 0)
291 if (path.Length == 0)
312 if (path.Length == 0)
327 public void CopyFile(
string sourceFileName,
string destinationFileName)
329 if (sourceFileName ==
null)
333 if (destinationFileName ==
null)
337 if (sourceFileName.Length == 0)
341 if (destinationFileName.Length == 0)
345 CopyFile(sourceFileName, destinationFileName, overwrite:
false);
348 public void CopyFile(
string sourceFileName,
string destinationFileName,
bool overwrite)
350 if (sourceFileName ==
null)
354 if (destinationFileName ==
null)
358 if (sourceFileName.Length == 0)
362 if (destinationFileName.Length == 0)
368 string fullPath2 =
GetFullPath(destinationFileName);
371 File.
Copy(fullPath, fullPath2, overwrite);
387 public void MoveFile(
string sourceFileName,
string destinationFileName)
389 if (sourceFileName ==
null)
393 if (destinationFileName ==
null)
397 if (sourceFileName.Length == 0)
401 if (destinationFileName.Length == 0)
407 string fullPath2 =
GetFullPath(destinationFileName);
426 public void MoveDirectory(
string sourceDirectoryName,
string destinationDirectoryName)
428 if (sourceDirectoryName ==
null)
432 if (destinationDirectoryName ==
null)
436 if (sourceDirectoryName.Length == 0)
440 if (destinationDirectoryName.Length == 0)
445 string fullPath =
GetFullPath(sourceDirectoryName);
446 string fullPath2 =
GetFullPath(destinationDirectoryName);
512 if (!(applicationEvidenceType ==
null))
521 if (applicationIdentity !=
null)
530 if (!(domainEvidenceType ==
null) || !(assemblyEvidenceType ==
null))
539 if (domainIdentity !=
null || assemblyIdentity !=
null)
549 for (i = 0; i < partialPath.Length && (partialPath[i] == Path.DirectorySeparatorChar || partialPath[i] ==
Path.
AltDirectorySeparatorChar); i++)
552 partialPath = partialPath.Substring(i);
577 ex._underlyingException = rootCause;
654 string[] directories;
668 if (files.Length == 0)
674 if (files.Length <= 1)
682 if (files.Length == 2 && !
IsIdFile(files[1]))
static void SuppressFinalize(object obj)
static string[] GetDirectories(string path)
static void Delete(string path)
static void Move(string sourceDirName, string destDirName)
static IEnumerable< string > EnumerateDirectories(string path)
static IEnumerable< string > EnumerateFiles(string path)
static DirectoryInfo CreateDirectory(string path)
static string[] GetFiles(string path)
static bool Exists([NotNullWhen(true)] string? path)
static DateTime GetLastAccessTime(string path)
static bool Exists([NotNullWhen(true)] string? path)
static DateTime GetCreationTime(string path)
static DateTime GetLastWriteTime(string path)
static void Copy(string sourceFileName, string destFileName)
static void Move(string sourceFileName, string destFileName)
static void Delete(string path)
static bool IsAssembly(IsolatedStorageScope scope)
static bool IsRoaming(IsolatedStorageScope scope)
static bool IsDomain(IsolatedStorageScope scope)
static string GetRootDirectory(IsolatedStorageScope scope)
static void CreateDirectory(string path, IsolatedStorageScope scope)
static bool IsApplication(IsolatedStorageScope scope)
static void Remove(IsolatedStorageScope scope)
bool IsMatchingScopeDirectory(string directory)
override ulong CurrentSize
static IsolatedStorageFile GetStore(IsolatedStorageScope scope, object? domainIdentity, object? assemblyIdentity)
static IsolatedStorageFile GetUserStoreForDomain()
void CreateDirectory(string dir)
bool ContainsUnknownFiles(string directory)
bool DirectoryExists(string path)
DateTimeOffset GetCreationTime(string path)
static void VerifyGlobalScope(IsolatedStorageScope scope)
override long AvailableFreeSpace
void CopyFile(string sourceFileName, string destinationFileName, bool overwrite)
readonly object _internalLock
void DeleteFile(string file)
IsolatedStorageFileStream CreateFile(string path)
static IsolatedStorageFile GetMachineStoreForDomain()
override bool IncreaseQuotaTo(long newQuotaSize)
IsolatedStorageFileStream OpenFile(string path, FileMode mode, FileAccess access)
string[] GetDirectoryNames()
void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName)
readonly string _rootDirectory
void MoveFile(string sourceFileName, string destinationFileName)
bool FileExists(string path)
void EnsureStoreIsValid()
static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
static IsolatedStorageFile GetUserStoreForSite()
void CopyFile(string sourceFileName, string destinationFileName)
static IsolatedStorageFile GetUserStoreForAssembly()
static bool IsIdFile(string file)
static IsolatedStorageFile GetMachineStoreForApplication()
static IsolatedStorageFile GetStore(IsolatedStorageScope scope, Type? domainEvidenceType, Type? assemblyEvidenceType)
DateTimeOffset GetLastWriteTime(string path)
string GetFullPath(string partialPath)
override ulong MaximumSize
void DeleteDirectory(string dir)
static IsolatedStorageFile GetUserStoreForApplication()
string[] GetFileNames(string searchPattern)
IsolatedStorageFileStream OpenFile(string path, FileMode mode)
static IEnumerator GetEnumerator(IsolatedStorageScope scope)
DateTimeOffset GetLastAccessTime(string path)
string[] GetDirectoryNames(string searchPattern)
static IsolatedStorageFile GetMachineStoreForAssembly()
IsolatedStorageFileStream OpenFile(string path, FileMode mode, FileAccess access, FileShare share)
static IsolatedStorageFile GetStore(IsolatedStorageScope scope, object? applicationIdentity)
static IsolatedStorageFile GetStore(IsolatedStorageScope scope, Type? applicationEvidenceType)
IsolatedStorageFile(IsolatedStorageScope scope)
static IsolatedStorageFile GetStore(IsolatedStorageScope scope)
static bool IsInfoFile(string file)
virtual char SeparatorExternal
void InitStore(IsolatedStorageScope scope, Type appEvidenceType)
static string Combine(string path1, string path2)
static ? string GetFileName(string? path)
static readonly char AltDirectorySeparatorChar
static readonly char DirectorySeparatorChar
static ? string GetDirectoryName(string? path)
static string IsolatedStorage_Scope_U_R_M
static string IsolatedStorage_DeleteDirectory
static string IsolatedStorage_NotValidOnDesktop
static string IsolatedStorage_DeleteFile
static string PlatformNotSupported_CAS
static string Format(string resourceFormat, object p1)
static string IsolatedStorage_CreateDirectory
static string IsolatedStorage_StoreNotOpen
static string Argument_EmptyPath
static string IsolatedStorage_DeleteDirectories
static string IsolatedStorage_Operation
static string PathNotFound_Path
override string ToString()
StringBuilder Append(char value, int repeatCount)
DateTimeOffset ToLocalTime()
static readonly TimeSpan Zero