2002-02-07 Duncan Mak <duncan@ximian.com>
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Thu, 7 Feb 2002 19:39:47 +0000 (19:39 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Thu, 7 Feb 2002 19:39:47 +0000 (19:39 -0000)
* IsolatedStorage.cs: Added to CVS, stubbed out the API.
* IsolatedStorageException.cs: Implemented.

svn path=/trunk/mcs/; revision=2260

mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs [new file with mode: 0644]
mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs [new file with mode: 0644]

index 620e6e01e2dc150e9d2ff01cc005a56c7f805c54..ee7e6a4b7261f5e4e458848844e655f6da9fefb1 100644 (file)
@@ -1,2 +1,7 @@
+2002-02-07  Duncan Mak  <duncan@ximian.com>
+
+       * IsolatedStorage.cs: Added to CVS, stubbed out the API.
+       * IsolatedStorageException.cs: Implemented.
+
 2002-01-07  Duco Fijma <duco@lorentz.xs4all.nl>
        * Created INormalizeForIsolatedStorage
diff --git a/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs b/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs
new file mode 100644 (file)
index 0000000..60c5e32
--- /dev/null
@@ -0,0 +1,78 @@
+//\r
+// System.IO.IsolatedStorage.cs\r
+//\r
+// Author: Duncan Mak (duncan@ximian.com)\r
+//\r
+// (C) Ximian, Inc. http://www.ximian.com\r
+//\r
+\r
+using System.Security;\r
+using System.Security.Permissions;\r
+\r
+namespace System.IO.IsolatedStorage\r
+{\r
+       public abstract class IsolatedStorage : MarshalByRefObject\r
+       {\r
+               // Constructor\r
+               protected IsolatedStorage ()\r
+                       : base ()\r
+               {\r
+               }\r
+\r
+               // Properties\r
+               [MonoTODO]\r
+               public object AssemblyIdentity\r
+               {\r
+                       get { return null; }\r
+               }\r
+\r
+               [CLSCompliant (false)]\r
+               [MonoTODO]\r
+               public virtual ulong CurrentSize\r
+               {\r
+                       get { return 0; }\r
+               }\r
+\r
+               [MonoTODO]\r
+               public object DomainIdentity\r
+               {\r
+                       get { return null; }\r
+               }\r
+\r
+               [CLSCompliant (false)]\r
+               [MonoTODO]\r
+               public virtual ulong MaximumSize\r
+               {\r
+                       get { return 0; }\r
+               }\r
+\r
+               [MonoTODO]\r
+               public IsolatedStorageScope Scope\r
+               {\r
+                       get { return 0; }\r
+               }\r
+\r
+               [MonoTODO]\r
+               protected virtual char SeperatorExternal\r
+               {\r
+                       get { return Char.MinValue; }\r
+               }\r
+\r
+               [MonoTODO]\r
+               protected virtual char SerperatorInternal\r
+               {\r
+                       get { return Char.MinValue; }\r
+               }\r
+\r
+               // Methods\r
+               protected abstract IsolatedStoragePermission GetPermission (PermissionSet ps);\r
+\r
+               [MonoTODO]\r
+               protected void InitStore (IsolatedStorageScope scope, Type domainEvidenceType,\r
+                                         Type assemblyEvidenceType)\r
+               {\r
+               }\r
+\r
+               protected abstract void Remove ();\r
+       }\r
+}\r
diff --git a/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs b/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs
new file mode 100644 (file)
index 0000000..51268d6
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// System.IO.IsolatedStorage.IsolatedstorageException
+//
+// Author: Duncan Mak (duncan@ximian.com)
+//
+// (C) 2002, Ximian, Inc. http://www.ximian.com
+//
+
+using System.Globalization;
+using System.Runtime.Serialization;
+
+namespace System.IO.IsolatedStorage
+{
+       [Serializable]
+               public class IsolatedStorageException : Exception
+       {
+               public IsolatedStorageException ()
+                       : base (Locale.GetText ("An Isolated storage operation failed."))
+               {
+               }
+
+               public IsolatedStorageException (string message)
+                       : base (message)
+               {
+               }
+
+               public IsolatedStorageException (string message, Exception inner)
+                       : base (message, inner)
+               {
+               }
+
+               protected IsolatedStorageException (SerializationInfo info, StreamingContext context)
+                       : base (info, context)
+               {
+               }
+       }
+}