Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlAutoDetectWriter.cs
- TransformDescriptor.cs
- DataGridTablesFactory.cs
- CompositeControl.cs
- CompositeDuplexBindingElement.cs
- WebServiceErrorEvent.cs
- TemplatingOptionsDialog.cs
- CodeAttributeArgumentCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- DbXmlEnabledProviderManifest.cs
- DocumentDesigner.cs
- PanelStyle.cs
- SqlPersonalizationProvider.cs
- ThemeableAttribute.cs
- FileChangesMonitor.cs
- RequestCachePolicyConverter.cs
- ContractSearchPattern.cs
- Expr.cs
- CircleEase.cs
- QuaternionAnimationUsingKeyFrames.cs
- RequiredAttributeAttribute.cs
- Compiler.cs
- BaseProcessor.cs
- TextSelection.cs
- ScrollViewer.cs
- _LocalDataStore.cs
- WindowsSlider.cs
- StateWorkerRequest.cs
- _BasicClient.cs
- GridEntry.cs
- BinaryObjectWriter.cs
- DebugView.cs
- FreezableOperations.cs
- ContainerParagraph.cs
- ItemType.cs
- SoapInteropTypes.cs
- EntityCollectionChangedParams.cs
- RotateTransform.cs
- Publisher.cs
- SqlTransaction.cs
- SingleStorage.cs
- ApplicationSecurityManager.cs
- DefaultEventAttribute.cs
- JoinElimination.cs
- PropertyFilterAttribute.cs
- CodeSnippetExpression.cs
- isolationinterop.cs
- RenderDataDrawingContext.cs
- SignedXml.cs
- LifetimeServices.cs
- EmbeddedObject.cs
- RadioButtonList.cs
- AuthenticationSection.cs
- SynchronizationContext.cs
- SimpleExpression.cs
- InlineCollection.cs
- HtmlInputHidden.cs
- hwndwrapper.cs
- PriorityQueue.cs
- WebPartDisplayModeEventArgs.cs
- FlowDocumentFormatter.cs
- ParseHttpDate.cs
- WindowShowOrOpenTracker.cs
- Expr.cs
- StorageComplexTypeMapping.cs
- ActivityDesignerResources.cs
- FlowNode.cs
- RemotingSurrogateSelector.cs
- DataControlFieldCollection.cs
- AssemblyBuilder.cs
- SetMemberBinder.cs
- InternalsVisibleToAttribute.cs
- InvokeBinder.cs
- RemotingServices.cs
- __ComObject.cs
- X509Utils.cs
- FormsAuthenticationConfiguration.cs
- ButtonRenderer.cs
- InkCanvas.cs
- XmlRawWriter.cs
- ObjectResult.cs
- CommentEmitter.cs
- OleDbDataReader.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- XsdBuilder.cs
- FolderBrowserDialogDesigner.cs
- AdRotatorDesigner.cs
- TransactionalPackage.cs
- Substitution.cs
- DynamicDataResources.Designer.cs
- Matrix.cs
- ClockGroup.cs
- ValidatorCollection.cs
- OdbcException.cs
- HttpWrapper.cs
- Component.cs
- XmlSchemaValidator.cs
- CodeComment.cs
- Encoder.cs
- GroupBoxDesigner.cs