Author: atsushi
Date: 2007-09-27 12:49:26 -0400 (Thu, 27 Sep 2007)
New Revision: 86513
Modified:
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/IManagedInstaller.cs
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/InstallEventHandler.cs
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/ChangeLog
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/EventLogInstaller.cs
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/PerformanceCounterInstaller.cs
Log:
2007-09-27 Atsushi Enomoto <[EMAIL PROTECTED]>
* PerformanceCounterInstaller.cs, EventLogInstaller.cs :
completeing 2.0 API (metadata-wise).
* IManagedInstaller.cs, InstallEventHandler.cs, UninstallAction.cs:
completeing 2.0 API (metadata-wise).
Modified:
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/ChangeLog
2007-09-27 16:49:26 UTC (rev 86513)
@@ -1,3 +1,8 @@
+2007-09-27 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * IManagedInstaller.cs, InstallEventHandler.cs, UninstallAction.cs:
+ completeing 2.0 API (metadata-wise).
+
2005-08-08 Gert Driesen <[EMAIL PROTECTED]>
* Installer.cs: Browsable must be true on Parent.
Modified:
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/IManagedInstaller.cs
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/IManagedInstaller.cs
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/IManagedInstaller.cs
2007-09-27 16:49:26 UTC (rev 86513)
@@ -33,6 +33,9 @@
{
[Guid("1E233FE7-C16D-4512-8C3B-2E9988F08D38")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+#if NET_2_0
+ [ComImport]
+#endif
public interface IManagedInstaller
{
[return: MarshalAs(UnmanagedType.I4)]
Modified:
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/InstallEventHandler.cs
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/InstallEventHandler.cs
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/InstallEventHandler.cs
2007-09-27 16:49:26 UTC (rev 86513)
@@ -31,6 +31,8 @@
namespace System.Configuration.Install
{
+#if !NET_2_0
[Serializable]
+#endif
public delegate void InstallEventHandler (object sender,
InstallEventArgs e);
}
Modified:
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Configuration.Install/UninstallAction.cs
2007-09-27 16:49:26 UTC (rev 86513)
@@ -31,8 +31,9 @@
using System;
namespace System.Configuration.Install {
-
+#if !NET_2_0
[Serializable]
+#endif
public enum UninstallAction {
NoAction=0x01,
Remove=0x00
Modified:
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/ChangeLog
===================================================================
--- trunk/mcs/class/System.Configuration.Install/System.Diagnostics/ChangeLog
2007-09-27 16:33:09 UTC (rev 86512)
+++ trunk/mcs/class/System.Configuration.Install/System.Diagnostics/ChangeLog
2007-09-27 16:49:26 UTC (rev 86513)
@@ -1,3 +1,8 @@
+2007-09-27 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * PerformanceCounterInstaller.cs, EventLogInstaller.cs :
+ completeing 2.0 API (metadata-wise).
+
2004-06-11 Gert Driesen <[EMAIL PROTECTED]>
* EventLogInstaller.cs: stubbed
Modified:
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/EventLogInstaller.cs
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/EventLogInstaller.cs
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/EventLogInstaller.cs
2007-09-27 16:49:26 UTC (rev 86513)
@@ -3,7 +3,8 @@
// Author:
// Gert Driesen ([EMAIL PROTECTED])
//
-// (C) Novell
+// (C) Gert Driesen
+// (C) Novell Inc.
//
//
@@ -40,7 +41,46 @@
{
}
+#if NET_2_0
[MonoTODO]
+ [ComVisible (false)]
+ public int CategoryCount {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ // in MSDN, documented as
System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ [Editor ("System.Windows.Forms.Design.FileNameEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing )]
+ [TypeConverter (typeof (StringConverter))]
+ [ComVisible (false)]
+ public string CategoryResourceFile {
+ get { return _categoryResourceFile; }
+ set { _categoryResourceFile = value; }
+ }
+
+ [MonoTODO]
+ // in MSDN, documented as
System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ [Editor ("System.Windows.Forms.Design.FileNameEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing )]
+ [TypeConverter (typeof (StringConverter))]
+ [ComVisible (false)]
+ public string MessageResourceFile {
+ get { return _messageResourceFile; }
+ set { _messageResourceFile = value; }
+ }
+
+ [MonoTODO]
+ // in MSDN, documented as
System.Diagnostics.Design.StringValueConverter, System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ [Editor ("System.Windows.Forms.Design.FileNameEditor, " +
Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " +
Consts.AssemblySystem_Drawing )]
+ [TypeConverter (typeof (StringConverter))]
+ [ComVisible (false)]
+ public string ParameterResourceFile {
+ get { return _parameterResourceFile; }
+ set { _parameterResourceFile = value; }
+ }
+#endif
+
+ [MonoTODO]
public override void CopyFromComponent (IComponent component)
{
throw new NotImplementedException ();
@@ -113,5 +153,10 @@
private string _log;
private string _source;
private UninstallAction _uninstallAction =
UninstallAction.Remove;
+#if NET_2_0
+ private string _categoryResourceFile;
+ private string _messageResourceFile;
+ private string _parameterResourceFile;
+#endif
}
}
Modified:
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/PerformanceCounterInstaller.cs
===================================================================
---
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/PerformanceCounterInstaller.cs
2007-09-27 16:33:09 UTC (rev 86512)
+++
trunk/mcs/class/System.Configuration.Install/System.Diagnostics/PerformanceCounterInstaller.cs
2007-09-27 16:49:26 UTC (rev 86513)
@@ -3,6 +3,7 @@
// Author:
// Gert Driesen ([EMAIL PROTECTED])
//
+// (C) Gert Driesen
// (C) Novell
//
@@ -30,6 +31,7 @@
using System.Collections;
using System.ComponentModel;
using System.Configuration.Install;
+using System.Runtime.InteropServices;
namespace System.Diagnostics
{
@@ -64,7 +66,9 @@
}
[DefaultValue ("")]
+#if !NET_2_0
[MonitoringDescription ("PCI_CategoryHelp")]
+#endif
public string CategoryHelp {
get {
return _categoryHelp;
@@ -92,7 +96,9 @@
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
+#if !NET_2_0
[MonitoringDescription("PCI_Counters")]
+#endif
public CounterCreationDataCollection Counters {
get {
return _counters;
@@ -100,7 +106,9 @@
}
[DefaultValue (UninstallAction.Remove)]
+#if !NET_2_0
[MonitoringDescription ("PCI_UninstallAction")]
+#endif
public UninstallAction UninstallAction {
get {
return _uninstallAction;
@@ -117,9 +125,32 @@
}
}
+#if NET_2_0
+ [ComVisible (false)]
+ [DefaultValue (PerformanceCounterCategoryType.Unknown)]
+ public PerformanceCounterCategoryType CategoryType {
+ get {
+ return _categoryType;
+ }
+ set {
+ if
(!Enum.IsDefined(typeof(PerformanceCounterCategoryType), value))
+ // LAMESPEC, the docs do not mention
this, but
+ // this exception is indeed thrown for
invalid
+ // values
+ throw new
InvalidEnumArgumentException("value",
+ (int) value,
typeof(PerformanceCounterCategoryType));
+
+ _categoryType = value;
+ }
+ }
+#endif
+
private string _categoryHelp = string.Empty;
private string _categoryName = string.Empty;
private CounterCreationDataCollection _counters = new
CounterCreationDataCollection ();
private UninstallAction _uninstallAction =
UninstallAction.Remove;
+#if NET_2_0
+ private PerformanceCounterCategoryType _categoryType;
+#endif
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches