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
- Win32PrintDialog.cs
- HtmlTableRow.cs
- PageRequestManager.cs
- CodeMethodMap.cs
- ToolboxItemFilterAttribute.cs
- contentDescriptor.cs
- RegexWriter.cs
- ViewEvent.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- AutoResetEvent.cs
- DbProviderFactory.cs
- WorkflowPageSetupDialog.cs
- Faults.cs
- PermissionSetEnumerator.cs
- XmlSchemaGroup.cs
- NetCodeGroup.cs
- RuntimeConfig.cs
- ValueUnavailableException.cs
- ConditionCollection.cs
- Buffer.cs
- ByteAnimation.cs
- InputReferenceExpression.cs
- ProcessThread.cs
- CustomTypeDescriptor.cs
- CLSCompliantAttribute.cs
- SignatureDescription.cs
- LayoutEvent.cs
- ZipIOExtraFieldElement.cs
- FilteredAttributeCollection.cs
- CryptoStream.cs
- DBNull.cs
- WebPartDescriptionCollection.cs
- CallSiteBinder.cs
- LassoHelper.cs
- XPathDocumentNavigator.cs
- SqlParameterizer.cs
- ArglessEventHandlerProxy.cs
- Activity.cs
- CodeExpressionCollection.cs
- DebuggerAttributes.cs
- MatrixTransform.cs
- ListenerSessionConnectionReader.cs
- DataGridLength.cs
- ExtensibleClassFactory.cs
- HMACRIPEMD160.cs
- Transactions.cs
- LinkLabelLinkClickedEvent.cs
- AmbientValueAttribute.cs
- OrderByQueryOptionExpression.cs
- GuidelineSet.cs
- PropertyConverter.cs
- NavigationWindowAutomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- PackagePartCollection.cs
- configsystem.cs
- Triangle.cs
- WindowsStatusBar.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BitmapDownload.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Matrix3D.cs
- updatecommandorderer.cs
- TemplateParser.cs
- AssemblyFilter.cs
- InstanceDescriptor.cs
- ProviderManager.cs
- connectionpool.cs
- FrameworkRichTextComposition.cs
- DataGrid.cs
- StandardToolWindows.cs
- SystemKeyConverter.cs
- ClientRolePrincipal.cs
- xdrvalidator.cs
- AnonymousIdentificationSection.cs
- ContextMenuAutomationPeer.cs
- ProxyHelper.cs
- HtmlInputText.cs
- WindowPattern.cs
- SerializationEventsCache.cs
- PageCache.cs
- EventMap.cs
- MediaContextNotificationWindow.cs
- SymbolTable.cs
- ForwardPositionQuery.cs
- CodeTryCatchFinallyStatement.cs
- ElapsedEventArgs.cs
- MsmqChannelFactory.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Rotation3DAnimation.cs
- oledbmetadatacolumnnames.cs
- ConditionCollection.cs
- CultureMapper.cs
- AccessViolationException.cs
- ManagementObjectSearcher.cs
- ToolboxItem.cs
- ProxySimple.cs
- XmlUtil.cs
- PackageRelationshipSelector.cs
- IisTraceWebEventProvider.cs
- WebPartConnectionsCancelVerb.cs