Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WebPartManagerInternals.cs
- PriorityBinding.cs
- WebPartTransformer.cs
- DrawItemEvent.cs
- FileDataSource.cs
- cache.cs
- SerialStream.cs
- LocalizabilityAttribute.cs
- ScaleTransform3D.cs
- MemoryMappedFileSecurity.cs
- Pointer.cs
- MatrixTransform3D.cs
- MD5CryptoServiceProvider.cs
- Error.cs
- RIPEMD160Managed.cs
- DataKey.cs
- ZipFileInfoCollection.cs
- TokenBasedSetEnumerator.cs
- ExecutorLocksHeldException.cs
- WebServiceData.cs
- RepeatButtonAutomationPeer.cs
- EntitySqlQueryCacheKey.cs
- XmlExtensionFunction.cs
- HtmlWindowCollection.cs
- HttpHandlerActionCollection.cs
- Context.cs
- IsolatedStorageFile.cs
- CacheSection.cs
- GridErrorDlg.cs
- TextRenderer.cs
- TextModifier.cs
- QueryCacheEntry.cs
- ScheduleChanges.cs
- BuildProvider.cs
- _BufferOffsetSize.cs
- RealizationDrawingContextWalker.cs
- SiteMapDataSourceView.cs
- WriteableBitmap.cs
- HTTPAPI_VERSION.cs
- StyleTypedPropertyAttribute.cs
- RepeaterCommandEventArgs.cs
- CodeMethodInvokeExpression.cs
- LassoHelper.cs
- recordstate.cs
- ToolbarAUtomationPeer.cs
- PolicyLevel.cs
- KeyValueConfigurationElement.cs
- X509InitiatorCertificateServiceElement.cs
- SqlDelegatedTransaction.cs
- FormViewRow.cs
- WebServiceData.cs
- PermissionSet.cs
- EndOfStreamException.cs
- SqlNotificationEventArgs.cs
- ObjectHandle.cs
- RequestQueryParser.cs
- StringHelper.cs
- XPathNavigatorException.cs
- LostFocusEventManager.cs
- EncryptedReference.cs
- WorkflowInstance.cs
- ControlCachePolicy.cs
- SortDescriptionCollection.cs
- XmlSerializerFactory.cs
- RawTextInputReport.cs
- WindowsFormsSectionHandler.cs
- WebBrowserContainer.cs
- UrlMappingCollection.cs
- DeleteIndexBinder.cs
- LazyLoadBehavior.cs
- TypeBuilder.cs
- Utilities.cs
- ServiceDiscoveryElement.cs
- ProvideValueServiceProvider.cs
- Select.cs
- TrackingStringDictionary.cs
- TrackingServices.cs
- SqlAggregateChecker.cs
- TreeNodeMouseHoverEvent.cs
- WebRequestModulesSection.cs
- MediaTimeline.cs
- ExpressionBuilder.cs
- ParameterToken.cs
- PenLineCapValidation.cs
- SynchronizedInputAdaptor.cs
- MessageQueue.cs
- AddInSegmentDirectoryNotFoundException.cs
- QueryStringParameter.cs
- Identity.cs
- Trigger.cs
- DataGridViewRow.cs
- TrustLevel.cs
- EmptyElement.cs
- RegexRunnerFactory.cs
- SpeechUI.cs
- brushes.cs
- BitmapImage.cs
- ListenerElementsCollection.cs
- XmlParserContext.cs
- DocumentPageHost.cs