+2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
+
+ * System.dll.sources : added PerformanceCounterInstanceLifetime.cs
+ and PerformanceCounterCategoryType.cs.
+
2007-08-01 Atsushi Enomoto <atsushi@ximian.com>
* System_test.dll.sources : added BackgroundWorkerTest.cs.
+2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
+
+ * PerformanceCounterInstanceLifetime.cs
+ PerformanceCounterCategoryType.cs : new.
+ * ICollectData.cs ProcessStartInfo.cs
+ InstanceDataCollectionCollection.cs PerformanceCounter.cs
+ InstanceDataCollection.cs Process.cs :
+ cosmetic attributes cleanup.
+
2007-08-03 Jb Evain <jbevain@novell.com>
* FileVersionInfo.cs: force the use of the params
{
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("73386977-D6FD-11D2-BED5-00C04F79E3AE")]
+#if NET_2_0
+ [ComImport]
+#endif
public interface ICollectData {
void CloseData ();
[return: MarshalAs(UnmanagedType.I4)]
}
// may throw ArgumentNullException
+#if NET_2_0
+ [Obsolete ("Use InstanceDataCollectionCollection indexer instead.")]
+#endif
public InstanceDataCollection (string counterName)
{
CheckNull (counterName, "counterName");
}
// may throw ArgumentNullException
+#if NET_2_0
+ [Obsolete ("Use PerformanceCounterCategory.ReadCategory()")]
+#endif
public InstanceDataCollectionCollection ()
{
}
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
namespace System.Diagnostics {
// must be safe for multithreaded operations
+#if !NET_2_0
[Designer ("Microsoft.VisualStudio.Install.PerformanceCounterDesigner, " + Consts.AssemblyMicrosoft_VisualStudio)]
+#endif
[InstallerType (typeof (PerformanceCounterInstaller))]
public sealed class PerformanceCounter : Component, ISupportInitialize
{
// may throw InvalidOperationException, Win32Exception
[MonoTODO]
+#if NET_2_0
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+#endif
public long IncrementBy (long value)
{
throw new NotImplementedException ();
// may throw InvalidOperationException, Win32Exception
[MonoTODO]
+#if NET_2_0
+ [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)]
+#endif
public void RemoveInstance ()
{
throw new NotImplementedException ();
--- /dev/null
+//
+// PerformanceCounterCategoryType.cs
+//
+// Author:
+// Atsushi Enomoto <atsushi@ximian.com>
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+
+namespace System.Diagnostics
+{
+ public enum PerformanceCounterCategoryType
+ {
+ SingleInstance,
+ MultiInstance,
+ Unknown = -1,
+ }
+}
+
+#endif
--- /dev/null
+//
+// PerformanceCounterInstanceLifetime.cs
+//
+// Author:
+// Atsushi Enomoto <atsushi@ximian.com>
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_2_0
+
+namespace System.Diagnostics
+{
+ public enum PerformanceCounterInstanceLifetime
+ {
+ Global,
+ Process,
+ }
+}
+
+#endif
[Designer ("System.Diagnostics.Design.ProcessDesigner, " + Consts.AssemblySystem_Design)]
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
[PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)]
+#if NET_2_0
+ [MonitoringDescription ("Represents a system process")]
+#endif
public class Process : Component
{
[StructLayout(LayoutKind.Sequential)]
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The number of bytes that are not pageable.")]
+ [ComVisible (false)]
public long NonpagedSystemMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The number of bytes that are paged.")]
+ [ComVisible (false)]
public long PagedMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The amount of paged system memory in bytes.")]
+ [ComVisible (false)]
public long PagedSystemMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The maximum amount of paged memory used by this process.")]
+ [ComVisible (false)]
public long PeakPagedMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The maximum amount of virtual memory used by this process.")]
+ [ComVisible (false)]
public long PeakVirtualMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The maximum amount of system memory used by this process.")]
+ [ComVisible (false)]
public long PeakWorkingSet64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The amount of memory exclusively used by this process.")]
+#if NET_2_0
+ [Obsolete ("Use PrivateMemorySize64")]
+#endif
public int PrivateMemorySize {
get {
return(0);
}
#if NET_2_0
+ [MonoTODO]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [MonitoringDescription ("The amount of memory exclusively used by this process.")]
+ [ComVisible (false)]
+ public long PrivateMemorySize64 {
+ get {
+ return(0);
+ }
+ }
+
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The amount of virtual memory currently used for this process.")]
+ [ComVisible (false)]
public long VirtualMemorySize64 {
get {
return(0);
[MonoTODO]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[MonitoringDescription ("The amount of physical memory currently used for this process.")]
+ [ComVisible (false)]
public long WorkingSet64 {
get {
return(0);
}
#if NET_2_0
+ [Browsable (true)]
+ [MonitoringDescription ("Raised when it receives output data")]
public event DataReceivedEventHandler OutputDataReceived;
+ [Browsable (true)]
+ [MonitoringDescription ("Raised when it receives error data")]
public event DataReceivedEventHandler ErrorDataReceived;
void OnOutputDataReceived (string str)
[TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
[MonitoringDescription ("Command line agruments for this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public string Arguments {
get {
return(arguments);
[DefaultValue (false)]
[MonitoringDescription ("Start this process with a new window.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool CreateNoWindow {
get {
return(create_no_window);
[DesignerSerializationVisibility (DesignerSerializationVisibility.Content), DefaultValue (null)]
[Editor ("System.Diagnostics.Design.StringDictionaryEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
[MonitoringDescription ("Environment variables used for this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public StringDictionary EnvironmentVariables {
get {
if (envVars == null) {
[DefaultValue (false)]
[MonitoringDescription ("Thread shows dialogboxes for errors.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool ErrorDialog {
get {
return(error_dialog);
[Editor ("System.Diagnostics.Design.StartFileNameEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
[TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
[MonitoringDescription ("The name of the resource to start this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public string FileName {
get {
return(filename);
[DefaultValue (false)]
[MonitoringDescription ("Errors of this process are redirected.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool RedirectStandardError {
get {
return(redirect_standard_error);
[DefaultValue (false)]
[MonitoringDescription ("Standard input of this process is redirected.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool RedirectStandardInput {
get {
return(redirect_standard_input);
[DefaultValue (false)]
[MonitoringDescription ("Standart output of this process is redirected.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool RedirectStandardOutput {
get {
return(redirect_standard_output);
[DefaultValue (true)]
[MonitoringDescription ("Use the shell to start this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public bool UseShellExecute {
get {
return(use_shell_execute);
[DefaultValue ("")]
[TypeConverter ("System.Diagnostics.Design.VerbConverter, " + Consts.AssemblySystem_Design)]
[MonitoringDescription ("The verb to apply to a used document.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public string Verb {
get {
return(verb);
[DefaultValue (typeof (ProcessWindowStyle), "Normal")]
[MonitoringDescription ("The window style used to start this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public ProcessWindowStyle WindowStyle {
get {
return(window_style);
[Editor ("System.Diagnostics.Design.WorkingDirectoryEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
[TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
[MonitoringDescription ("The initial directory for this process.")]
+#if NET_2_0
+ [NotifyParentPropertyAttribute (true)]
+#endif
public string WorkingDirectory {
get {
return(working_directory);
System.Diagnostics/NullEventLog.cs
System.Diagnostics/OverflowAction.cs
System.Diagnostics/PerformanceCounterCategory.cs
+System.Diagnostics/PerformanceCounterCategoryType.cs
System.Diagnostics/PerformanceCounter.cs
System.Diagnostics/PerformanceCounterInstaller.cs
+System.Diagnostics/PerformanceCounterInstanceLifetime.cs
System.Diagnostics/PerformanceCounterManager.cs
System.Diagnostics/PerformanceCounterPermissionAccess.cs
System.Diagnostics/PerformanceCounterPermissionAttribute.cs