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
- MissingManifestResourceException.cs
- PeerFlooder.cs
- XmlReaderDelegator.cs
- ByteViewer.cs
- View.cs
- HttpHandlersSection.cs
- AddInPipelineAttributes.cs
- codemethodreferenceexpression.cs
- SystemUnicastIPAddressInformation.cs
- BinaryExpression.cs
- BulletedListDesigner.cs
- EnumerableCollectionView.cs
- ServiceAppDomainAssociationProvider.cs
- CurrentChangingEventManager.cs
- InvalidOperationException.cs
- DataGridViewRowCancelEventArgs.cs
- Shape.cs
- SystemColors.cs
- BitmapEffectInputData.cs
- RegexCode.cs
- PartialCachingControl.cs
- SpellerStatusTable.cs
- PageOrientation.cs
- TokenBasedSetEnumerator.cs
- StringInfo.cs
- UpdateProgress.cs
- SystemPens.cs
- CommonServiceBehaviorElement.cs
- KeyedHashAlgorithm.cs
- ListViewItemEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- SqlIdentifier.cs
- PackageStore.cs
- MessageProperties.cs
- Int32.cs
- DbConnectionStringCommon.cs
- PermissionAttributes.cs
- RolePrincipal.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataContext.cs
- EditorZone.cs
- Message.cs
- Light.cs
- TextFormatterHost.cs
- ScriptManagerProxy.cs
- DataList.cs
- SortFieldComparer.cs
- ClonableStack.cs
- XmlBaseWriter.cs
- WebPartEditorCancelVerb.cs
- DataGridViewAccessibleObject.cs
- graph.cs
- NeutralResourcesLanguageAttribute.cs
- WinEventQueueItem.cs
- PreviewKeyDownEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- ReferencedType.cs
- DataGridViewBindingCompleteEventArgs.cs
- RuntimeArgumentHandle.cs
- DataTableClearEvent.cs
- ChtmlTextWriter.cs
- ReadonlyMessageFilter.cs
- WindowsSecurityTokenAuthenticator.cs
- DictionaryKeyPropertyAttribute.cs
- ObfuscationAttribute.cs
- DataObjectPastingEventArgs.cs
- PartialCachingAttribute.cs
- ProviderConnectionPointCollection.cs
- Documentation.cs
- SingleAnimationBase.cs
- StatusBarAutomationPeer.cs
- MetadataArtifactLoader.cs
- ConnectionConsumerAttribute.cs
- ErrorTableItemStyle.cs
- BindingManagerDataErrorEventArgs.cs
- AdCreatedEventArgs.cs
- EmbeddedMailObject.cs
- Base64Encoder.cs
- TabControl.cs
- SimpleType.cs
- ContentOperations.cs
- BCryptSafeHandles.cs
- UntrustedRecipientException.cs
- PolicyException.cs
- __FastResourceComparer.cs
- DictionaryContent.cs
- Rect.cs
- RouteItem.cs
- DATA_BLOB.cs
- CardSpaceException.cs
- SystemException.cs
- StrongNameUtility.cs
- RowUpdatingEventArgs.cs
- FastEncoder.cs
- UIElementIsland.cs
- CodeNamespaceImportCollection.cs
- ConfigurationSectionGroupCollection.cs
- ReferencedAssembly.cs
- C14NUtil.cs
- HtmlHead.cs