Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventData.cs / 1305376 / EventData.cs
using System.ComponentModel; using System.Security.Permissions; using System.Security; namespace System.Diagnostics { public class EventInstance { private int _categoryNumber; private EventLogEntryType _entryType = EventLogEntryType.Information; private long _instanceId; public EventInstance(long instanceId, int categoryId) { CategoryId = categoryId; InstanceId = instanceId; } public EventInstance(long instanceId, int categoryId, EventLogEntryType entryType) : this (instanceId, categoryId) { EntryType = entryType; } public int CategoryId { get { return _categoryNumber; } set { if (value > UInt16.MaxValue || value < 0) throw new ArgumentOutOfRangeException("value"); _categoryNumber = value; } } public EventLogEntryType EntryType { get { return _entryType; } set { if (!Enum.IsDefined(typeof(EventLogEntryType), value)) throw new InvalidEnumArgumentException("value", (int)value, typeof(EventLogEntryType)); _entryType = value; } } public long InstanceId { get { return _instanceId; } set { if (value > UInt32.MaxValue || value < 0) throw new ArgumentOutOfRangeException("value"); _instanceId = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectDataProvider.cs
- Visual3D.cs
- ReaderWriterLock.cs
- PageSetupDialog.cs
- ButtonFlatAdapter.cs
- DataGridViewButtonColumn.cs
- ArraySortHelper.cs
- XMLSchema.cs
- MyContact.cs
- TextLine.cs
- CodeTypeDeclaration.cs
- OrderPreservingMergeHelper.cs
- CalloutQueueItem.cs
- CodeDOMProvider.cs
- SmiEventSink_DeferedProcessing.cs
- EntitySetRetriever.cs
- RelatedImageListAttribute.cs
- FocusWithinProperty.cs
- CreateUserErrorEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- OleDbRowUpdatedEvent.cs
- PointAnimationClockResource.cs
- StructuralObject.cs
- OpenTypeCommon.cs
- EntityDataSourceWizardForm.cs
- ImmutableAssemblyCacheEntry.cs
- CreateSequence.cs
- CodeTypeParameter.cs
- ComProxy.cs
- SortedDictionary.cs
- XmlQueryContext.cs
- ScrollProperties.cs
- RemoteWebConfigurationHost.cs
- TypeConverter.cs
- CommandBinding.cs
- RegexStringValidator.cs
- DataTableReader.cs
- Adorner.cs
- xmlfixedPageInfo.cs
- BindValidationContext.cs
- messageonlyhwndwrapper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ImageIndexEditor.cs
- TextWriterTraceListener.cs
- BindingNavigator.cs
- WebEvents.cs
- WebPartHelpVerb.cs
- SplitterPanelDesigner.cs
- PieceNameHelper.cs
- SharedPerformanceCounter.cs
- LicenseContext.cs
- AssemblyAssociatedContentFileAttribute.cs
- ColumnResult.cs
- AutomationIdentifierGuids.cs
- XamlSerializerUtil.cs
- PathFigureCollection.cs
- AuthorizationRule.cs
- EntityDataSourceViewSchema.cs
- SQLStringStorage.cs
- CompilerCollection.cs
- HttpListenerRequestUriBuilder.cs
- OpenFileDialog.cs
- ISCIIEncoding.cs
- BStrWrapper.cs
- UTF7Encoding.cs
- ToolStripOverflow.cs
- ZipPackagePart.cs
- StyleCollection.cs
- EditorZoneAutoFormat.cs
- BroadcastEventHelper.cs
- ResXBuildProvider.cs
- AnnotationObservableCollection.cs
- Serializer.cs
- ComponentEvent.cs
- EventProviderClassic.cs
- ZipIOBlockManager.cs
- DetailsViewRow.cs
- WebDisplayNameAttribute.cs
- DispatcherExceptionEventArgs.cs
- AddInAdapter.cs
- DataListItem.cs
- URIFormatException.cs
- TextModifierScope.cs
- FontWeight.cs
- IISMapPath.cs
- ConfigurationManagerInternalFactory.cs
- KeyedCollection.cs
- EnumerableRowCollectionExtensions.cs
- RuleSetBrowserDialog.cs
- SettingsPropertyIsReadOnlyException.cs
- CollectionType.cs
- PublishLicense.cs
- PageThemeParser.cs
- WebPartsPersonalization.cs
- SEHException.cs
- ControlPaint.cs
- Helpers.cs
- SpellCheck.cs
- EmptyReadOnlyDictionaryInternal.cs
- OutputCacheSection.cs