2009-06-30 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System.Security.Cryptography.X509Certificates / X509KeyStorageFlags.cs
index 3d87390a5b5474021dcc2d1bc7a7fac96dcbae30..1a2d9af32bbb9cece5c0478c43da56d08eaef313 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0
 
-using System;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography.X509Certificates {
 
        [Flags]
+       [Serializable]
+       [ComVisible (true)]
        public enum X509KeyStorageFlags {
-               DefaultKeySet,
-               UserKeySet,
-               MachineKeySet,
-               Exportable,
-               UserProtected,
-               PersistKeySet 
+               DefaultKeySet = 0,
+#if !NET_2_1
+               // not supported by Silverlight 2.0 (NET_2_1)
+               UserKeySet = 1,
+               MachineKeySet = 2,
+               Exportable = 4,
+               UserProtected = 8,
+               PersistKeySet = 16 
+#endif
        }
 }