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
- WrappedKeySecurityToken.cs
- EventSetter.cs
- MarkerProperties.cs
- BinHexEncoding.cs
- AssemblyNameProxy.cs
- ScriptManagerProxy.cs
- ThemeDirectoryCompiler.cs
- XsltQilFactory.cs
- MarkupExtensionReturnTypeAttribute.cs
- IisTraceListener.cs
- DataGridViewDataConnection.cs
- TagPrefixCollection.cs
- Rules.cs
- OracleNumber.cs
- TreeNodeMouseHoverEvent.cs
- RichTextBoxAutomationPeer.cs
- ColorConverter.cs
- DelegatingConfigHost.cs
- FontFamilyIdentifier.cs
- AsyncContentLoadedEventArgs.cs
- SqlConnectionStringBuilder.cs
- DbParameterCollectionHelper.cs
- RepeaterDesigner.cs
- FileRecordSequence.cs
- DataGridViewAdvancedBorderStyle.cs
- ChannelCacheDefaults.cs
- MetaModel.cs
- ProjectionCamera.cs
- BitStack.cs
- Ports.cs
- FamilyCollection.cs
- Types.cs
- RichTextBoxDesigner.cs
- DomainConstraint.cs
- BooleanConverter.cs
- DataGridItemAutomationPeer.cs
- HMACSHA1.cs
- RemotingAttributes.cs
- CryptoStream.cs
- HttpServerVarsCollection.cs
- CodeCatchClause.cs
- Int32Converter.cs
- ReplyChannelBinder.cs
- NativeMethods.cs
- PointAnimationBase.cs
- WrapperEqualityComparer.cs
- CFStream.cs
- XPathScanner.cs
- FormatterServices.cs
- IndexExpression.cs
- UInt32.cs
- PolicyLevel.cs
- InternalSafeNativeMethods.cs
- FillBehavior.cs
- SafePEFileHandle.cs
- CodeMemberEvent.cs
- EventLogRecord.cs
- DotExpr.cs
- DataSourceConverter.cs
- Model3D.cs
- PersistenceException.cs
- IgnoreDeviceFilterElement.cs
- SaveLedgerEntryRequest.cs
- DPTypeDescriptorContext.cs
- PropertyItem.cs
- MarshalDirectiveException.cs
- ToolStripDropDownClosedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- ChangeProcessor.cs
- UnicodeEncoding.cs
- XmlSchemaSubstitutionGroup.cs
- WebPartRestoreVerb.cs
- DataPagerCommandEventArgs.cs
- AutoGeneratedFieldProperties.cs
- LocationInfo.cs
- OwnerDrawPropertyBag.cs
- XmlSchemaInfo.cs
- DebuggerAttributes.cs
- EncoderReplacementFallback.cs
- MimeTypeAttribute.cs
- ConnectionPoint.cs
- PageContent.cs
- PaintEvent.cs
- _OverlappedAsyncResult.cs
- DbProviderServices.cs
- IndentTextWriter.cs
- GC.cs
- JavaScriptObjectDeserializer.cs
- AddInActivator.cs
- ColorConvertedBitmapExtension.cs
- WmlTextBoxAdapter.cs
- SynchronizationContext.cs
- InitializerFacet.cs
- RelationshipWrapper.cs
- HScrollBar.cs
- DbgUtil.cs
- SecurityRuntime.cs
- Drawing.cs
- QueryExpr.cs
- MemoryMappedFile.cs