Code:
/ DotNET / DotNET / 8.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
- Blend.cs
- ControlBuilderAttribute.cs
- ThreadAttributes.cs
- ToolStripItemImageRenderEventArgs.cs
- QuaternionConverter.cs
- DataGridViewBindingCompleteEventArgs.cs
- WindowsMenu.cs
- WeakReferenceKey.cs
- DrawTreeNodeEventArgs.cs
- DockPattern.cs
- DefinitionUpdate.cs
- PackageRelationshipCollection.cs
- Comparer.cs
- RuntimeArgumentHandle.cs
- UserNameSecurityToken.cs
- ObjectDataSource.cs
- HtmlElementCollection.cs
- AuthorizationPolicyTypeElement.cs
- PrimarySelectionAdorner.cs
- SqlRowUpdatedEvent.cs
- SelectQueryOperator.cs
- FunctionMappingTranslator.cs
- SortDescription.cs
- InvokePatternIdentifiers.cs
- TreeViewCancelEvent.cs
- SmiConnection.cs
- Rect3DConverter.cs
- DataGridViewRowCancelEventArgs.cs
- DependencyPropertyHelper.cs
- XmlSchemaExporter.cs
- BamlTreeUpdater.cs
- TabControlAutomationPeer.cs
- TreeViewImageIndexConverter.cs
- DataObject.cs
- DeploymentSection.cs
- ValidationPropertyAttribute.cs
- CompilerState.cs
- AppDomain.cs
- QueryCacheEntry.cs
- Style.cs
- FragmentQuery.cs
- SubtreeProcessor.cs
- LinkDescriptor.cs
- LinkArea.cs
- StandardToolWindows.cs
- MappingItemCollection.cs
- CaseExpr.cs
- WebServiceData.cs
- AncestorChangedEventArgs.cs
- DeferredSelectedIndexReference.cs
- CompatibleIComparer.cs
- RenderCapability.cs
- Keywords.cs
- LazyTextWriterCreator.cs
- XsltFunctions.cs
- DataControlLinkButton.cs
- MouseWheelEventArgs.cs
- ExpandedWrapper.cs
- ReadWriteObjectLock.cs
- AppSettingsReader.cs
- ListViewCancelEventArgs.cs
- DataBoundControlHelper.cs
- TransformerInfo.cs
- ListContractAdapter.cs
- RequestCache.cs
- OleDbReferenceCollection.cs
- SessionStateUtil.cs
- ListViewCancelEventArgs.cs
- SymmetricKeyWrap.cs
- SamlAuthenticationClaimResource.cs
- InfiniteIntConverter.cs
- Hyperlink.cs
- AuthenticationServiceManager.cs
- Setter.cs
- XsltArgumentList.cs
- NativeMethods.cs
- FrameworkObject.cs
- WebPartDisplayModeEventArgs.cs
- SelectionHighlightInfo.cs
- CodeMemberProperty.cs
- odbcmetadatacollectionnames.cs
- WaitHandleCannotBeOpenedException.cs
- InputLangChangeEvent.cs
- FilteredSchemaElementLookUpTable.cs
- UrlAuthFailedErrorFormatter.cs
- FixedPageStructure.cs
- ObjectTypeMapping.cs
- ModulesEntry.cs
- Table.cs
- TransformerConfigurationWizardBase.cs
- FileClassifier.cs
- LZCodec.cs
- ListBox.cs
- LinkUtilities.cs
- ExtensionWindowResizeGrip.cs
- RealProxy.cs
- WebControlAdapter.cs
- OutputCacheSection.cs
- ConfigXmlCDataSection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs