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
- HttpHandlersSection.cs
- FreezableDefaultValueFactory.cs
- _OverlappedAsyncResult.cs
- Slider.cs
- EntitySetDataBindingList.cs
- safex509handles.cs
- DragAssistanceManager.cs
- ECDiffieHellmanCng.cs
- LicFileLicenseProvider.cs
- iisPickupDirectory.cs
- Size3DValueSerializer.cs
- BitmapEffect.cs
- SqlGenerator.cs
- RegexWorker.cs
- EntityDataSourceContextDisposingEventArgs.cs
- TakeQueryOptionExpression.cs
- OleDragDropHandler.cs
- TextMarkerSource.cs
- ExceptionRoutedEventArgs.cs
- EntityDataSourceColumn.cs
- FontFamilyConverter.cs
- DtrList.cs
- ArrayWithOffset.cs
- ContainerTracking.cs
- XmlByteStreamWriter.cs
- ProxyWebPartManager.cs
- CodeGen.cs
- CodeTypeMember.cs
- SqlCacheDependency.cs
- SqlDelegatedTransaction.cs
- ValidatingPropertiesEventArgs.cs
- OleServicesContext.cs
- HealthMonitoringSectionHelper.cs
- RtfToXamlReader.cs
- RouteData.cs
- InvokeMemberBinder.cs
- NetCodeGroup.cs
- _ContextAwareResult.cs
- DesignerToolStripControlHost.cs
- MenuItemBindingCollection.cs
- HybridDictionary.cs
- ExpressionVisitor.cs
- NavigationFailedEventArgs.cs
- RequestCachePolicyConverter.cs
- ServiceContractViewControl.Designer.cs
- NetPipeSectionData.cs
- ImageIndexConverter.cs
- ListControl.cs
- Thread.cs
- CheckBox.cs
- Input.cs
- MetadataArtifactLoaderFile.cs
- EllipseGeometry.cs
- XamlNamespaceHelper.cs
- FileRegion.cs
- TimeoutException.cs
- HtmlHead.cs
- NumberFormatInfo.cs
- WebPartVerbCollection.cs
- Quaternion.cs
- MethodBuilderInstantiation.cs
- BasicHttpBindingElement.cs
- PackWebRequest.cs
- HtmlTextArea.cs
- ComplexBindingPropertiesAttribute.cs
- DataTransferEventArgs.cs
- RtType.cs
- NullableFloatSumAggregationOperator.cs
- IPGlobalProperties.cs
- InvokeFunc.cs
- Faults.cs
- HyperLinkField.cs
- HttpHandlersSection.cs
- CheckBoxField.cs
- EmptyStringExpandableObjectConverter.cs
- MessageTransmitTraceRecord.cs
- IMembershipProvider.cs
- EntityObject.cs
- UidManager.cs
- TextDecoration.cs
- DependencyPropertyHelper.cs
- BufferedOutputStream.cs
- TextParaClient.cs
- UnaryNode.cs
- KeyboardEventArgs.cs
- CompatibleIComparer.cs
- GetTokenRequest.cs
- IndividualDeviceConfig.cs
- OptimalTextSource.cs
- ExclusiveHandle.cs
- GAC.cs
- EventLogEntryCollection.cs
- Constraint.cs
- MessageBox.cs
- BridgeDataRecord.cs
- WindowClosedEventArgs.cs
- StreamGeometry.cs
- IntPtr.cs
- SecurityUtils.cs
- BooleanAnimationBase.cs