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
- RSACryptoServiceProvider.cs
- ControlCachePolicy.cs
- HashHelpers.cs
- BrowserCapabilitiesCompiler.cs
- DayRenderEvent.cs
- ReflectPropertyDescriptor.cs
- ViewCellRelation.cs
- TableAutomationPeer.cs
- ShutDownListener.cs
- MouseWheelEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- ChannelManager.cs
- InstanceStoreQueryResult.cs
- MetadataArtifactLoaderComposite.cs
- TextFindEngine.cs
- DropSourceBehavior.cs
- HScrollBar.cs
- TypeUtils.cs
- HtmlFormParameterWriter.cs
- Track.cs
- PermissionToken.cs
- FrameworkTextComposition.cs
- SessionSwitchEventArgs.cs
- Inline.cs
- DataGridViewCellCollection.cs
- SafeLibraryHandle.cs
- SessionStateItemCollection.cs
- MenuAdapter.cs
- Row.cs
- RoutedEventHandlerInfo.cs
- LocalizableResourceBuilder.cs
- NetTcpSectionData.cs
- ClosableStream.cs
- _HelperAsyncResults.cs
- XmlSchemaInclude.cs
- ClientRuntimeConfig.cs
- RawAppCommandInputReport.cs
- TreeViewImageIndexConverter.cs
- HttpPostProtocolReflector.cs
- LayoutEvent.cs
- TypedElement.cs
- RSAOAEPKeyExchangeFormatter.cs
- IconHelper.cs
- MatrixAnimationUsingPath.cs
- EpmCustomContentDeSerializer.cs
- ExpandCollapsePattern.cs
- FixedElement.cs
- XmlSchemaImporter.cs
- OleDbConnectionInternal.cs
- CryptoHandle.cs
- ScrollBarRenderer.cs
- EncoderExceptionFallback.cs
- UnsafeMethods.cs
- RuntimeHelpers.cs
- RowVisual.cs
- Point3DAnimationBase.cs
- InvokeBinder.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TimeManager.cs
- SafeIUnknown.cs
- LinqDataSourceDeleteEventArgs.cs
- Frame.cs
- Predicate.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ServiceObjectContainer.cs
- InfoCardTraceRecord.cs
- ISO2022Encoding.cs
- AssemblyResourceLoader.cs
- MailMessage.cs
- Point3D.cs
- ClientFormsIdentity.cs
- FlowDocumentReader.cs
- AnnouncementEndpointElement.cs
- AlignmentXValidation.cs
- CapabilitiesState.cs
- SrgsText.cs
- DescendantQuery.cs
- FileLogRecordStream.cs
- BookmarkManager.cs
- SelectionService.cs
- XPathExpr.cs
- SystemTcpStatistics.cs
- RSAPKCS1SignatureDeformatter.cs
- StateInitialization.cs
- CompensatableSequenceActivity.cs
- FormsAuthentication.cs
- AffineTransform3D.cs
- SqlUserDefinedAggregateAttribute.cs
- documentation.cs
- ImageBrush.cs
- PublisherMembershipCondition.cs
- XmlUnspecifiedAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- LineGeometry.cs
- Parsers.cs
- FamilyMap.cs
- CompatibleComparer.cs
- XmlTypeAttribute.cs
- EdmTypeAttribute.cs
- Lease.cs