Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventBookmark.cs / 1305376 / EventBookmark.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventBookmark ** ** Purpose: ** This public class represents an opaque Event Bookmark obtained ** from an EventRecord. The bookmark denotes a unique identifier ** for the event instance as well as marks the location in the ** the result set of the EventReader that the event instance was ** obtained from. ** ============================================================*/ using System.Runtime.InteropServices; using System.Security.Permissions; using System.Runtime.Serialization; namespace System.Diagnostics.Eventing.Reader { // // NOTE: This class must be generic enough to be used across // eventing base implementations. Cannot add anything // that ties it to one particular implementation. // ////// Represents an opaque Event Bookmark obtained from an EventRecord. /// The bookmark denotes a unique identifier for the event instance as /// well as marks the location in the the result set of the EventReader /// that the event instance was obtained from. /// [Serializable] [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public class EventBookmark : ISerializable { string bookmark; internal EventBookmark(string bookmarkText) { if (bookmarkText == null) throw new ArgumentNullException("bookmarkText"); this.bookmark = bookmarkText; } protected EventBookmark(SerializationInfo info, StreamingContext context) { if (info == null) throw new ArgumentNullException("info"); this.bookmark = info.GetString("BookmarkText"); } // SecurityCritical due to inherited link demand for GetObjectData. [System.Security.SecurityCritical,SecurityPermissionAttribute(SecurityAction.LinkDemand,Flags = SecurityPermissionFlag.SerializationFormatter)] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { GetObjectData( info, context ); } // SecurityCritical due to inherited link demand for GetObjectData. [System.Security.SecurityCritical,SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] protected virtual void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) throw new ArgumentNullException("info"); info.AddValue("BookmarkText", this.bookmark); } internal string BookmarkText { get { return bookmark; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventBookmark ** ** Purpose: ** This public class represents an opaque Event Bookmark obtained ** from an EventRecord. The bookmark denotes a unique identifier ** for the event instance as well as marks the location in the ** the result set of the EventReader that the event instance was ** obtained from. ** ============================================================*/ using System.Runtime.InteropServices; using System.Security.Permissions; using System.Runtime.Serialization; namespace System.Diagnostics.Eventing.Reader { // // NOTE: This class must be generic enough to be used across // eventing base implementations. Cannot add anything // that ties it to one particular implementation. // ////// Represents an opaque Event Bookmark obtained from an EventRecord. /// The bookmark denotes a unique identifier for the event instance as /// well as marks the location in the the result set of the EventReader /// that the event instance was obtained from. /// [Serializable] [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public class EventBookmark : ISerializable { string bookmark; internal EventBookmark(string bookmarkText) { if (bookmarkText == null) throw new ArgumentNullException("bookmarkText"); this.bookmark = bookmarkText; } protected EventBookmark(SerializationInfo info, StreamingContext context) { if (info == null) throw new ArgumentNullException("info"); this.bookmark = info.GetString("BookmarkText"); } // SecurityCritical due to inherited link demand for GetObjectData. [System.Security.SecurityCritical,SecurityPermissionAttribute(SecurityAction.LinkDemand,Flags = SecurityPermissionFlag.SerializationFormatter)] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { GetObjectData( info, context ); } // SecurityCritical due to inherited link demand for GetObjectData. [System.Security.SecurityCritical,SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] protected virtual void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) throw new ArgumentNullException("info"); info.AddValue("BookmarkText", this.bookmark); } internal string BookmarkText { get { return bookmark; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HostUtils.cs
- MeshGeometry3D.cs
- LambdaCompiler.Binary.cs
- ConfigXmlCDataSection.cs
- AppDomainManager.cs
- infer.cs
- PathSegment.cs
- StorageMappingItemLoader.cs
- SplitterCancelEvent.cs
- UnsafeNativeMethods.cs
- PageCodeDomTreeGenerator.cs
- RoutedEventConverter.cs
- WrappedKeySecurityToken.cs
- DependencyPropertyConverter.cs
- Application.cs
- HelpKeywordAttribute.cs
- TextFindEngine.cs
- PngBitmapEncoder.cs
- SystemPens.cs
- ServiceProviders.cs
- IISUnsafeMethods.cs
- Int32CollectionConverter.cs
- TypeConverter.cs
- DirectionalLight.cs
- UpdateManifestForBrowserApplication.cs
- Rss20FeedFormatter.cs
- _NativeSSPI.cs
- AnnouncementClient.cs
- linebase.cs
- PlainXmlDeserializer.cs
- EdmEntityTypeAttribute.cs
- SectionXmlInfo.cs
- ListMarkerLine.cs
- FontDifferentiator.cs
- SqlCacheDependencyDatabase.cs
- DataGridViewLinkColumn.cs
- Rect.cs
- ContainerCodeDomSerializer.cs
- TextCharacters.cs
- BatchParser.cs
- GrowingArray.cs
- HelpHtmlBuilder.cs
- DeferredElementTreeState.cs
- DataGridCellClipboardEventArgs.cs
- TextEditorParagraphs.cs
- LogicalChannel.cs
- WebPartRestoreVerb.cs
- HandlerFactoryCache.cs
- BinarySerializer.cs
- BitmapScalingModeValidation.cs
- TextEndOfParagraph.cs
- DetailsView.cs
- Configuration.cs
- DbQueryCommandTree.cs
- IISMapPath.cs
- ControlBuilderAttribute.cs
- FunctionNode.cs
- SendKeys.cs
- HeaderedItemsControl.cs
- ProxySimple.cs
- HexParser.cs
- CompiledRegexRunner.cs
- QueryStatement.cs
- sqlmetadatafactory.cs
- HttpWebRequestElement.cs
- TreeNodeBinding.cs
- TraceSection.cs
- NavigationFailedEventArgs.cs
- ComponentCommands.cs
- CorePropertiesFilter.cs
- AudioFormatConverter.cs
- SQLInt64.cs
- WebPartMenu.cs
- DataRowCollection.cs
- Util.cs
- BufferedGraphicsManager.cs
- CalendarDateRangeChangingEventArgs.cs
- TraceContextRecord.cs
- CommandLibraryHelper.cs
- ExpressionQuoter.cs
- ImageSourceConverter.cs
- XmlSchemaAttributeGroupRef.cs
- MarginsConverter.cs
- ApplicationInfo.cs
- DynamicDocumentPaginator.cs
- ZoneButton.cs
- DbSetClause.cs
- Transform.cs
- Vector3DCollectionConverter.cs
- PathSegmentCollection.cs
- StylusPointPropertyId.cs
- XomlCompilerError.cs
- HttpWebRequest.cs
- FixedSOMContainer.cs
- XmlSchemaComplexType.cs
- WsiProfilesElement.cs
- _TransmitFileOverlappedAsyncResult.cs
- ConvertBinder.cs
- CodeCommentStatementCollection.cs
- CryptoKeySecurity.cs