diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2006-08-09 13:02:00 +0400 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2006-08-09 13:02:00 +0400 |
commit | 5051ca56cea7c3f33528d24be6359c4ea9130ee6 (patch) | |
tree | e174b8e1ed501d33e76479e677df64ca10340ee3 /mcs/class/System/System.Diagnostics/EventInstance.cs | |
parent | 79c9aca6c956d6a9d2aa493d127095c747a3f0b3 (diff) |
* EventInstance.cs: Added 2.0 class.
* EventSourceCreationData.cs: Added 2.0 class.
* OverflowAction.cs: Added 2.0 enum.
* System.dll.sources: Added EventInstance.cs, OverflowAction.cs,
EventSourceCreationData.cs.
svn path=/trunk/mcs/; revision=63523
Diffstat (limited to 'mcs/class/System/System.Diagnostics/EventInstance.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/EventInstance.cs | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/EventInstance.cs b/mcs/class/System/System.Diagnostics/EventInstance.cs new file mode 100644 index 00000000000..df8637ebcba --- /dev/null +++ b/mcs/class/System/System.Diagnostics/EventInstance.cs @@ -0,0 +1,70 @@ +// +// System.Diagnostics.EventInstance +// +// Authors: +// Gert Driesen (drieseng@users.sourceforge.net) +// +// (C) 2006 Novell +// +// +// 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 class EventInstance + { + int _categoryId; + EventLogEntryType _entryType; + long _instanceId; + + public EventInstance (long instanceId, int categoryId) + : this (instanceId, categoryId, EventLogEntryType.Information) + { + } + + public EventInstance (long instanceId, int categoryId, EventLogEntryType entryType) + { + _instanceId = instanceId; + _categoryId = categoryId; + _entryType = entryType; + } + + public int CategoryId + { + get { return _categoryId; } + set { _categoryId = value; } + } + + public EventLogEntryType EntryType + { + get { return _entryType; } + set { _entryType = value; } + } + + public long InstanceId + { + get { return _instanceId; } + set { _instanceId = value; } + } + } +} +#endif |