Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventData.cs / 1 / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityWithKeyStrategy.cs
- UserUseLicenseDictionaryLoader.cs
- SessionPageStateSection.cs
- ResourceReader.cs
- DebugView.cs
- WinFormsComponentEditor.cs
- StaticTextPointer.cs
- DataGridViewCheckBoxColumn.cs
- SqlNodeTypeOperators.cs
- FlowLayoutPanel.cs
- QilLoop.cs
- PersonalizationState.cs
- OracleCommandBuilder.cs
- TaskFormBase.cs
- EncoderExceptionFallback.cs
- SmtpReplyReader.cs
- BlurEffect.cs
- PersistNameAttribute.cs
- Profiler.cs
- BezierSegment.cs
- keycontainerpermission.cs
- UriParserTemplates.cs
- CustomError.cs
- WarningException.cs
- TcpClientChannel.cs
- EmbossBitmapEffect.cs
- PrintPageEvent.cs
- Label.cs
- BindableAttribute.cs
- TextTreeTextBlock.cs
- SelectedDatesCollection.cs
- WebDescriptionAttribute.cs
- XmlSchemaInclude.cs
- ContextProperty.cs
- MostlySingletonList.cs
- FormViewUpdateEventArgs.cs
- PropertyStore.cs
- DesignerGenericWebPart.cs
- CodeComment.cs
- AuthenticationService.cs
- SecureEnvironment.cs
- HttpRuntime.cs
- Dump.cs
- CompoundFileStreamReference.cs
- StatusBarItemAutomationPeer.cs
- ConstraintManager.cs
- TemplateControlParser.cs
- CompositeCollection.cs
- OneOfElement.cs
- DuplicateMessageDetector.cs
- ProcessActivityTreeOptions.cs
- ErrorRuntimeConfig.cs
- CodeLabeledStatement.cs
- PolyBezierSegment.cs
- EntityContainerEntitySet.cs
- ThumbButtonInfoCollection.cs
- DataGridViewRowHeaderCell.cs
- DataGridPageChangedEventArgs.cs
- Operator.cs
- ResourceAttributes.cs
- Stacktrace.cs
- MatrixTransform3D.cs
- MarkupCompilePass1.cs
- PrincipalPermission.cs
- WeakEventTable.cs
- IfAction.cs
- SID.cs
- PackWebResponse.cs
- EncoderBestFitFallback.cs
- PointCollection.cs
- BitmapMetadataBlob.cs
- IItemContainerGenerator.cs
- OdbcCommand.cs
- DefaultValueAttribute.cs
- XPathArrayIterator.cs
- BindToObject.cs
- EmbeddedMailObjectsCollection.cs
- CellPartitioner.cs
- ModelItemKeyValuePair.cs
- fixedPageContentExtractor.cs
- ListView.cs
- SignedInfo.cs
- OperatingSystem.cs
- AssemblyInfo.cs
- EntityDataSourceContainerNameItem.cs
- PropertyGridView.cs
- DataBoundControlHelper.cs
- HttpSocketManager.cs
- TriggerAction.cs
- SafeFileHandle.cs
- HtmlShim.cs
- OneToOneMappingSerializer.cs
- MetadataItemEmitter.cs
- PersonalizableAttribute.cs
- HttpApplicationFactory.cs
- DataServiceException.cs
- PageContent.cs
- HelpKeywordAttribute.cs
- Helper.cs
- LeafCellTreeNode.cs