Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Reliability / CriticalFinalizerObject.cs / 1305376 / 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
- ProfilePropertyNameValidator.cs
- TrustManager.cs
- TimeSpanSecondsConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- Application.cs
- ChannelEndpointElement.cs
- BoundColumn.cs
- assertwrapper.cs
- MatrixCamera.cs
- ListDictionaryInternal.cs
- ManagementPath.cs
- Message.cs
- TimeZone.cs
- PassportIdentity.cs
- PolicyUnit.cs
- XsltFunctions.cs
- RelationshipConverter.cs
- BamlLocalizer.cs
- SplitterEvent.cs
- FormViewDeleteEventArgs.cs
- CellRelation.cs
- NullReferenceException.cs
- SynchronizationContext.cs
- __Filters.cs
- AutomationElement.cs
- IsolatedStorageFileStream.cs
- Timeline.cs
- ExpressionBindingCollection.cs
- Underline.cs
- HtmlElementErrorEventArgs.cs
- BuildResultCache.cs
- sqlpipe.cs
- DrawingGroupDrawingContext.cs
- SkipStoryboardToFill.cs
- SecurityRuntime.cs
- Transform3DGroup.cs
- TransformBlockRequest.cs
- OleDbDataAdapter.cs
- VBCodeProvider.cs
- RSACryptoServiceProvider.cs
- XamlParser.cs
- SchemaType.cs
- RsaElement.cs
- AspNetSynchronizationContext.cs
- CustomSignedXml.cs
- ClusterSafeNativeMethods.cs
- WindowsClientCredential.cs
- VectorAnimationUsingKeyFrames.cs
- FactoryId.cs
- XmlSiteMapProvider.cs
- X509RawDataKeyIdentifierClause.cs
- KeyboardNavigation.cs
- SessionMode.cs
- Error.cs
- WebServiceClientProxyGenerator.cs
- CmsInterop.cs
- MessageQueue.cs
- VerificationAttribute.cs
- PasswordRecovery.cs
- VirtualizedCellInfoCollection.cs
- FrameworkContentElementAutomationPeer.cs
- ItemsControl.cs
- Propagator.Evaluator.cs
- SByte.cs
- CapabilitiesPattern.cs
- XmlSchemaSequence.cs
- LabelTarget.cs
- SecurityCookieModeValidator.cs
- HtmlWindowCollection.cs
- IsolatedStorageFileStream.cs
- WebBrowserBase.cs
- PostBackTrigger.cs
- LineInfo.cs
- PropertyEmitter.cs
- DependencyPropertyChangedEventArgs.cs
- RequestStatusBarUpdateEventArgs.cs
- RowParagraph.cs
- OracleBoolean.cs
- AndCondition.cs
- regiisutil.cs
- InvokeMethod.cs
- TypeDependencyAttribute.cs
- Html32TextWriter.cs
- InstanceLockQueryResult.cs
- ValidationSummary.cs
- ArgIterator.cs
- TextTreeExtractElementUndoUnit.cs
- GeometryGroup.cs
- DbConnectionHelper.cs
- Menu.cs
- BoundPropertyEntry.cs
- ClientOptions.cs
- RepeaterCommandEventArgs.cs
- PickBranch.cs
- NoPersistProperty.cs
- InternalPermissions.cs
- PageHandlerFactory.cs
- EventRecord.cs
- OpenTypeLayoutCache.cs
- XmlAttributeOverrides.cs