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
- SqlDataSourceFilteringEventArgs.cs
- RtfControls.cs
- RecordsAffectedEventArgs.cs
- XmlSerializerFactory.cs
- TextPointerBase.cs
- QualificationDataAttribute.cs
- SimplePropertyEntry.cs
- Vector3DConverter.cs
- StyleXamlTreeBuilder.cs
- TextDecorationCollection.cs
- FamilyMap.cs
- Authorization.cs
- PathHelper.cs
- HtmlTextArea.cs
- ToolBar.cs
- RadioButtonPopupAdapter.cs
- HyperLinkDesigner.cs
- GregorianCalendarHelper.cs
- FileSystemInfo.cs
- QueryReaderSettings.cs
- ErrorCodes.cs
- PointLightBase.cs
- TableProviderWrapper.cs
- KeyPullup.cs
- keycontainerpermission.cs
- PropertyReferenceSerializer.cs
- ConditionCollection.cs
- GenericAuthenticationEventArgs.cs
- EntityDesignerUtils.cs
- CornerRadius.cs
- ObjectStateManager.cs
- AttachmentCollection.cs
- WindowsListViewSubItem.cs
- TypeConstant.cs
- FindRequestContext.cs
- AstTree.cs
- WSSecurityTokenSerializer.cs
- DataPager.cs
- WhitespaceRuleReader.cs
- MetricEntry.cs
- InputLangChangeEvent.cs
- BreadCrumbTextConverter.cs
- DbConnectionPoolCounters.cs
- UInt64Converter.cs
- SqlBinder.cs
- ProxyGenerationError.cs
- IPipelineRuntime.cs
- CodeDOMUtility.cs
- QualificationDataAttribute.cs
- base64Transforms.cs
- TypeListConverter.cs
- DoubleStorage.cs
- Typography.cs
- BitmapFrameEncode.cs
- SoapTypeAttribute.cs
- ObjectResult.cs
- ResolveResponseInfo.cs
- OutputCacheSettingsSection.cs
- UnsafeNetInfoNativeMethods.cs
- SingleTagSectionHandler.cs
- BooleanStorage.cs
- WebService.cs
- DefaultIfEmptyQueryOperator.cs
- Pens.cs
- Panel.cs
- UiaCoreApi.cs
- DelimitedListTraceListener.cs
- FixedSOMSemanticBox.cs
- XmlSchemaSimpleType.cs
- Int64Converter.cs
- CellTreeSimplifier.cs
- RowUpdatedEventArgs.cs
- DetailsViewCommandEventArgs.cs
- DbDataRecord.cs
- SemaphoreSecurity.cs
- ComponentEditorPage.cs
- OleDbPermission.cs
- CollectionConverter.cs
- ArgumentValueSerializer.cs
- GenericUriParser.cs
- SeverityFilter.cs
- XmlMtomWriter.cs
- DefaultTextStoreTextComposition.cs
- AttributeXamlType.cs
- DataGridViewRowConverter.cs
- EventSetter.cs
- FileDialogCustomPlace.cs
- ImageSource.cs
- Image.cs
- assertwrapper.cs
- assertwrapper.cs
- MenuItemCollectionEditorDialog.cs
- SizeLimitedCache.cs
- printdlgexmarshaler.cs
- ColorMatrix.cs
- PolicyValidator.cs
- NameValuePermission.cs
- PersistenceException.cs
- DefaultValueTypeConverter.cs
- ReceiveActivityValidator.cs