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
- FieldBuilder.cs
- KeyConverter.cs
- MsmqActivation.cs
- mansign.cs
- DecoderExceptionFallback.cs
- Update.cs
- Component.cs
- AssemblyEvidenceFactory.cs
- ContextMarshalException.cs
- RowVisual.cs
- ScrollChrome.cs
- BoolExpressionVisitors.cs
- EncodedStreamFactory.cs
- XPathConvert.cs
- WinCategoryAttribute.cs
- BaseDataList.cs
- Compress.cs
- ISessionStateStore.cs
- PackageDigitalSignature.cs
- InputLanguageManager.cs
- ProfilePropertyNameValidator.cs
- Filter.cs
- ellipse.cs
- FileLevelControlBuilderAttribute.cs
- VisualBasicExpressionConverter.cs
- MatrixKeyFrameCollection.cs
- ClassHandlersStore.cs
- InternalDispatchObject.cs
- ConnectionStringsExpressionBuilder.cs
- precedingsibling.cs
- SQLMoney.cs
- SerialPort.cs
- Point3D.cs
- ElapsedEventArgs.cs
- DeflateStream.cs
- RectAnimationBase.cs
- EventHandlersDesigner.cs
- SystemBrushes.cs
- ScriptServiceAttribute.cs
- SpoolingTaskBase.cs
- WmfPlaceableFileHeader.cs
- AttachmentCollection.cs
- FastEncoder.cs
- ErrorTolerantObjectWriter.cs
- DbConnectionFactory.cs
- TypeDelegator.cs
- Keyboard.cs
- AuthenticationModulesSection.cs
- InfoCardSymmetricCrypto.cs
- BulletChrome.cs
- ContentElementAutomationPeer.cs
- ReflectEventDescriptor.cs
- BindingMAnagerBase.cs
- CompilerHelpers.cs
- X509ClientCertificateAuthenticationElement.cs
- EnvelopedPkcs7.cs
- GPStream.cs
- DiscoveryInnerClientAdhoc11.cs
- QilPatternFactory.cs
- FrameworkContentElement.cs
- SchemaObjectWriter.cs
- TableItemStyle.cs
- MemberAssignment.cs
- DataSourceXmlAttributeAttribute.cs
- DesignerEventService.cs
- HttpListenerRequest.cs
- DecodeHelper.cs
- ClientUrlResolverWrapper.cs
- AttachedPropertyBrowsableAttribute.cs
- TextOnlyOutput.cs
- Point.cs
- EdmScalarPropertyAttribute.cs
- SecurityTokenResolver.cs
- ChangeNode.cs
- SqlException.cs
- Publisher.cs
- Missing.cs
- XmlValueConverter.cs
- AnonymousIdentificationSection.cs
- DefaultHttpHandler.cs
- TypeUnloadedException.cs
- AQNBuilder.cs
- AsymmetricKeyExchangeFormatter.cs
- GregorianCalendarHelper.cs
- DBConnectionString.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- BlockCollection.cs
- HelpProvider.cs
- KnownColorTable.cs
- BindingListCollectionView.cs
- CombinedGeometry.cs
- CodeBlockBuilder.cs
- List.cs
- EntryWrittenEventArgs.cs
- ColorContext.cs
- TrackingWorkflowEventArgs.cs
- Faults.cs
- WizardStepBase.cs
- Preprocessor.cs
- MailMessageEventArgs.cs