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
- PackageDigitalSignature.cs
- dataprotectionpermission.cs
- ChineseLunisolarCalendar.cs
- EmptyReadOnlyDictionaryInternal.cs
- JavaScriptSerializer.cs
- WindowsFormsSynchronizationContext.cs
- XamlPathDataSerializer.cs
- Stylesheet.cs
- AuthenticateEventArgs.cs
- Label.cs
- MeshGeometry3D.cs
- TextBoxBase.cs
- SynchronizingStream.cs
- OracleTimeSpan.cs
- CodeDefaultValueExpression.cs
- ImageField.cs
- UIPermission.cs
- DataTable.cs
- GifBitmapEncoder.cs
- FirstMatchCodeGroup.cs
- CategoryEditor.cs
- SiteOfOriginContainer.cs
- FixedDocumentPaginator.cs
- ContractMapping.cs
- _ChunkParse.cs
- FormatSettings.cs
- BaseServiceProvider.cs
- SchemaElementDecl.cs
- CacheChildrenQuery.cs
- DependencyPropertyKey.cs
- WindowsSecurityToken.cs
- tooltip.cs
- DrawTreeNodeEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WebHostedComPlusServiceHost.cs
- HMAC.cs
- RadioButtonRenderer.cs
- PersonalizationAdministration.cs
- HtmlImageAdapter.cs
- ReturnType.cs
- LeaseManager.cs
- ManagedFilter.cs
- Model3DCollection.cs
- XpsSerializerFactory.cs
- QueryCoreOp.cs
- BindingsCollection.cs
- MediaCommands.cs
- ProtectedConfiguration.cs
- ImpersonateTokenRef.cs
- RightNameExpirationInfoPair.cs
- ListItemParagraph.cs
- ProfilePropertySettingsCollection.cs
- MD5CryptoServiceProvider.cs
- StrokeSerializer.cs
- Function.cs
- DiagnosticsElement.cs
- PartialCachingControl.cs
- StaticSiteMapProvider.cs
- XmlCharacterData.cs
- WinFormsComponentEditor.cs
- _RequestCacheProtocol.cs
- SynchronizedDispatch.cs
- RsaSecurityTokenAuthenticator.cs
- PermissionSetEnumerator.cs
- ServiceMoniker.cs
- SoapTypeAttribute.cs
- PerformanceCounterCategory.cs
- EntityContainerEmitter.cs
- ReaderWriterLock.cs
- Size3DConverter.cs
- ImageFormat.cs
- LogExtent.cs
- CompressionTracing.cs
- LoginNameDesigner.cs
- BindingList.cs
- NameValueSectionHandler.cs
- PropertyEntry.cs
- ObjectDataSourceMethodEditor.cs
- TypeElement.cs
- GroupQuery.cs
- StringUtil.cs
- ConsoleKeyInfo.cs
- DataGridItemCollection.cs
- X509Chain.cs
- XmlDictionaryWriter.cs
- DbParameterHelper.cs
- SecureEnvironment.cs
- SafeCertificateStore.cs
- SplitContainer.cs
- StrokeCollectionConverter.cs
- RemotingSurrogateSelector.cs
- DataGridRowHeaderAutomationPeer.cs
- ServicePointManagerElement.cs
- WindowsListView.cs
- TdsParser.cs
- SemanticKeyElement.cs
- OpenFileDialog.cs
- ExpressionBindings.cs
- AdornerPresentationContext.cs
- FlowDecisionLabelFeature.cs