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
- InfoCardTraceRecord.cs
- TransformProviderWrapper.cs
- SqlBulkCopyColumnMapping.cs
- VectorCollectionConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- GAC.cs
- ToolboxItemWrapper.cs
- SrgsElementFactoryCompiler.cs
- JsonFormatGeneratorStatics.cs
- _FtpDataStream.cs
- MailSettingsSection.cs
- CodeIdentifier.cs
- AssemblyAttributes.cs
- RectAnimationUsingKeyFrames.cs
- DispatcherFrame.cs
- CodeValidator.cs
- WsatConfiguration.cs
- MessageQueueInstaller.cs
- OperationInvokerBehavior.cs
- WebPartEventArgs.cs
- storagemappingitemcollection.viewdictionary.cs
- CategoryNameCollection.cs
- TabControlCancelEvent.cs
- ChangePasswordDesigner.cs
- ObjectStorage.cs
- QilGenerator.cs
- ActivityMarkupSerializationProvider.cs
- BinarySecretSecurityToken.cs
- ResourceDescriptionAttribute.cs
- DataSourceXmlSerializer.cs
- QilList.cs
- securitycriticaldataformultiplegetandset.cs
- FormView.cs
- GeneralTransform3DTo2D.cs
- BamlMapTable.cs
- _HeaderInfo.cs
- SqlGenerator.cs
- UnsafeNativeMethods.cs
- LoginUtil.cs
- Int32CollectionConverter.cs
- Crc32Helper.cs
- GraphicsPathIterator.cs
- ObjectTypeMapping.cs
- GotoExpression.cs
- SplayTreeNode.cs
- TypeConverterBase.cs
- ExeContext.cs
- EmptyEnumerator.cs
- coordinatorfactory.cs
- ConsumerConnectionPoint.cs
- SqlCommandAsyncResult.cs
- DataServiceQueryOfT.cs
- DataRelationCollection.cs
- Formatter.cs
- IPAddressCollection.cs
- RoutedUICommand.cs
- ControlBuilderAttribute.cs
- IndexingContentUnit.cs
- ExtendLockAsyncResult.cs
- AuthenticationConfig.cs
- OdbcHandle.cs
- UnlockCardRequest.cs
- EncoderBestFitFallback.cs
- BrowserCapabilitiesCodeGenerator.cs
- BrowserDefinition.cs
- DoubleCollection.cs
- XmlSchemaInclude.cs
- AsyncResult.cs
- DetailsViewModeEventArgs.cs
- SimpleMailWebEventProvider.cs
- TimeSpanSecondsConverter.cs
- TextDecoration.cs
- documentsequencetextcontainer.cs
- CornerRadius.cs
- StylusDevice.cs
- ObservableDictionary.cs
- VisualProxy.cs
- AppSettings.cs
- XD.cs
- EntryPointNotFoundException.cs
- LineGeometry.cs
- XslNumber.cs
- EventProviderWriter.cs
- EntityViewGenerator.cs
- WaitHandleCannotBeOpenedException.cs
- CodeIterationStatement.cs
- ChangePassword.cs
- EdmMember.cs
- HtmlInputButton.cs
- GlyphRunDrawing.cs
- DecoderNLS.cs
- ColumnWidthChangingEvent.cs
- UIElementCollection.cs
- WindowsFormsDesignerOptionService.cs
- WebPartEditorApplyVerb.cs
- PhysicalFontFamily.cs
- SyndicationFeedFormatter.cs
- GlyphElement.cs
- ADMembershipProvider.cs
- IPAddress.cs