Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / Reliability / CriticalFinalizerObject.cs / 1 / CriticalFinalizerObject.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: CriticalFinalizerObject ** ** ** Deriving from this class will cause any finalizer you define to be critical ** (i.e. the finalizer is guaranteed to run, won't be aborted by the host and is ** run after the finalizers of other objects collected at the same time). ** ** You must possess UnmanagedCode permission in order to derive from this class. ** ** ===========================================================*/ using System; using System.Security.Permissions; using System.Runtime.InteropServices; namespace System.Runtime.ConstrainedExecution { [SecurityPermission(SecurityAction.InheritanceDemand, UnmanagedCode=true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class CriticalFinalizerObject { [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] protected CriticalFinalizerObject() { } [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] ~CriticalFinalizerObject() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: CriticalFinalizerObject ** ** ** Deriving from this class will cause any finalizer you define to be critical ** (i.e. the finalizer is guaranteed to run, won't be aborted by the host and is ** run after the finalizers of other objects collected at the same time). ** ** You must possess UnmanagedCode permission in order to derive from this class. ** ** ===========================================================*/ using System; using System.Security.Permissions; using System.Runtime.InteropServices; namespace System.Runtime.ConstrainedExecution { [SecurityPermission(SecurityAction.InheritanceDemand, UnmanagedCode=true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class CriticalFinalizerObject { [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] protected CriticalFinalizerObject() { } [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] ~CriticalFinalizerObject() { } } } // 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
- BindingContext.cs
- ellipse.cs
- SqlServices.cs
- TableLayoutPanelCellPosition.cs
- FamilyMapCollection.cs
- ToolStripDesignerUtils.cs
- BigIntegerStorage.cs
- WindowsTooltip.cs
- UnitySerializationHolder.cs
- ToolStripItemRenderEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlUtil.cs
- OrderedDictionary.cs
- PageStatePersister.cs
- XhtmlTextWriter.cs
- LoginDesignerUtil.cs
- DebugControllerThread.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- AuthenticationServiceManager.cs
- TextReader.cs
- ArithmeticException.cs
- SpeechRecognizer.cs
- PathFigureCollection.cs
- WebPartUserCapability.cs
- DataGridAddNewRow.cs
- WebDescriptionAttribute.cs
- GridItemProviderWrapper.cs
- NamespaceList.cs
- FixedSOMTable.cs
- CellQuery.cs
- DictionaryTraceRecord.cs
- _SSPIWrapper.cs
- DataRelation.cs
- Vector.cs
- DocumentPage.cs
- EncoderExceptionFallback.cs
- SessionStateItemCollection.cs
- CodeGenerator.cs
- MimePart.cs
- TemplateAction.cs
- OdbcFactory.cs
- SqlColumnizer.cs
- TypeLibConverter.cs
- ProfileService.cs
- BitmapEffectGroup.cs
- TeredoHelper.cs
- WpfPayload.cs
- UriTemplateTableMatchCandidate.cs
- OleDbInfoMessageEvent.cs
- ControlIdConverter.cs
- ExpressionBindings.cs
- LiteralTextParser.cs
- FixedSOMTableRow.cs
- SHA384Managed.cs
- PropertyItemInternal.cs
- RegexReplacement.cs
- SqlReferenceCollection.cs
- ProxyWebPartConnectionCollection.cs
- CodeTryCatchFinallyStatement.cs
- SystemIcmpV6Statistics.cs
- DLinqTableProvider.cs
- PolyQuadraticBezierSegment.cs
- OlePropertyStructs.cs
- ListItemParagraph.cs
- UnauthorizedAccessException.cs
- OdbcTransaction.cs
- IisTraceListener.cs
- XmlSerializationGeneratedCode.cs
- TraceData.cs
- UpdateCompiler.cs
- StringStorage.cs
- Composition.cs
- NativeMethods.cs
- xmlfixedPageInfo.cs
- XmlLinkedNode.cs
- SettingsAttributeDictionary.cs
- querybuilder.cs
- FlowchartStart.xaml.cs
- MasterPageBuildProvider.cs
- XslVisitor.cs
- ItemList.cs
- UseLicense.cs
- VersionPair.cs
- SystemTcpConnection.cs
- RowSpanVector.cs
- TraceProvider.cs
- COM2ColorConverter.cs
- CommandConverter.cs
- BufferedGraphicsManager.cs
- WorkflowTraceTransfer.cs
- HandleCollector.cs
- CommandHelper.cs
- ScriptServiceAttribute.cs
- HashCodeCombiner.cs
- ArglessEventHandlerProxy.cs
- MethodInfo.cs
- Point3D.cs
- WsdlEndpointConversionContext.cs
- GeometryCombineModeValidation.cs
- ToolboxCategoryItems.cs