Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SqlException.cs
- AmbientEnvironment.cs
- InkPresenter.cs
- MLangCodePageEncoding.cs
- PropertyContainer.cs
- OutOfMemoryException.cs
- TextureBrush.cs
- DataGridTablesFactory.cs
- ServiceAuthorizationManager.cs
- DictionaryEntry.cs
- StorageAssociationSetMapping.cs
- CodeTypeOfExpression.cs
- DropSourceBehavior.cs
- FixedHyperLink.cs
- PrinterResolution.cs
- CompiledQuery.cs
- HashLookup.cs
- UnsafeMethods.cs
- HyperLinkColumn.cs
- HtmlInputButton.cs
- StringReader.cs
- WindowsPrincipal.cs
- AdCreatedEventArgs.cs
- SqlNodeTypeOperators.cs
- WCFBuildProvider.cs
- ProcessModelSection.cs
- _NestedSingleAsyncResult.cs
- SymbolEqualComparer.cs
- ResourceDefaultValueAttribute.cs
- Vars.cs
- wgx_exports.cs
- DataControlHelper.cs
- MarkedHighlightComponent.cs
- FragmentQueryProcessor.cs
- DateTimeOffsetAdapter.cs
- AsyncOperationManager.cs
- GeneralTransformCollection.cs
- DirectoryLocalQuery.cs
- SizeConverter.cs
- XMLUtil.cs
- DataPager.cs
- MemberMaps.cs
- RegexTree.cs
- CodeDOMUtility.cs
- ParameterToken.cs
- MultiPropertyDescriptorGridEntry.cs
- TogglePattern.cs
- CommandManager.cs
- configsystem.cs
- KeyValuePair.cs
- AddInActivator.cs
- ExtendLockAsyncResult.cs
- CustomDictionarySources.cs
- PropertyInfoSet.cs
- XmlNavigatorFilter.cs
- GridViewUpdateEventArgs.cs
- ConnectionStringsExpressionEditor.cs
- HttpWriter.cs
- WinEventTracker.cs
- PaperSize.cs
- Point.cs
- SemanticAnalyzer.cs
- HttpsHostedTransportConfiguration.cs
- StreamingContext.cs
- FrameworkPropertyMetadata.cs
- GridViewCellAutomationPeer.cs
- EncoderParameter.cs
- BuildResult.cs
- AttachedAnnotationChangedEventArgs.cs
- ImageCodecInfo.cs
- FunctionQuery.cs
- ContextItemManager.cs
- DecoderReplacementFallback.cs
- KeyProperty.cs
- Rotation3D.cs
- ThreadStaticAttribute.cs
- DataGridViewColumnCollection.cs
- DurableTimerExtension.cs
- TemplateModeChangedEventArgs.cs
- DesignerSerializationVisibilityAttribute.cs
- MailAddressCollection.cs
- FtpWebResponse.cs
- LocationFactory.cs
- PrintEvent.cs
- ReadOnlyCollection.cs
- KeyboardDevice.cs
- XmlSchemaSimpleContentRestriction.cs
- ThreadExceptionEvent.cs
- DataTableNewRowEvent.cs
- Control.cs
- WmlLiteralTextAdapter.cs
- IntegerFacetDescriptionElement.cs
- MenuBase.cs
- Parameter.cs
- CommandDevice.cs
- RegexCaptureCollection.cs
- ActivityExecutionContextCollection.cs
- CodeTypeMemberCollection.cs
- ArgumentException.cs
- Util.cs