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
- FileDataSourceCache.cs
- OdbcErrorCollection.cs
- OutputCacheSection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DecimalConverter.cs
- SoapConverter.cs
- Repeater.cs
- Pipe.cs
- SqlReorderer.cs
- ElementHostAutomationPeer.cs
- ModelPropertyImpl.cs
- QuaternionAnimationBase.cs
- PerfCounters.cs
- PropertyPathConverter.cs
- PolyLineSegment.cs
- XmlDictionary.cs
- DispatcherOperation.cs
- UIAgentAsyncEndRequest.cs
- HostVisual.cs
- TraceProvider.cs
- OptimizedTemplateContentHelper.cs
- RefreshEventArgs.cs
- ExpressionParser.cs
- BamlLocalizer.cs
- ContextBase.cs
- TdsParserStaticMethods.cs
- OutputCacheProfileCollection.cs
- MouseDevice.cs
- HelpProvider.cs
- HwndSourceParameters.cs
- NotifyParentPropertyAttribute.cs
- XmlSchemaSimpleTypeList.cs
- ErasingStroke.cs
- FormViewDeletedEventArgs.cs
- ScriptManager.cs
- TextEditorThreadLocalStore.cs
- DataBindingCollectionConverter.cs
- MsmqProcessProtocolHandler.cs
- TemplateBindingExtensionConverter.cs
- WithStatement.cs
- SqlStream.cs
- ObjectDataSourceSelectingEventArgs.cs
- RuleElement.cs
- StringExpressionSet.cs
- StreamResourceInfo.cs
- OdbcStatementHandle.cs
- DesignerDataParameter.cs
- OutputCacheModule.cs
- HierarchicalDataBoundControl.cs
- Collection.cs
- _HelperAsyncResults.cs
- WorkflowServiceHostFactory.cs
- SqlRewriteScalarSubqueries.cs
- StylusCollection.cs
- WmlControlAdapter.cs
- EncryptedKeyIdentifierClause.cs
- Rule.cs
- TransformerInfoCollection.cs
- StateWorkerRequest.cs
- TreeViewItemAutomationPeer.cs
- CodeTypeDelegate.cs
- OpCodes.cs
- RemoteWebConfigurationHost.cs
- ClientTarget.cs
- OpCellTreeNode.cs
- DataGridViewSelectedCellCollection.cs
- RedistVersionInfo.cs
- FormViewUpdatedEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- HtmlWindowCollection.cs
- XsdBuildProvider.cs
- PrePostDescendentsWalker.cs
- AsynchronousChannel.cs
- UIPermission.cs
- BatchParser.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- BindingRestrictions.cs
- SqlCaseSimplifier.cs
- WebPartConnection.cs
- CompositeActivityDesigner.cs
- DrawingBrush.cs
- _TimerThread.cs
- GeneralTransform.cs
- TableCell.cs
- ContractsBCL.cs
- SecurityCriticalDataForSet.cs
- IPAddressCollection.cs
- MimeFormatter.cs
- StrongTypingException.cs
- FirstMatchCodeGroup.cs
- ObjectDataSourceView.cs
- StatusBarPanel.cs
- ExpressionPrefixAttribute.cs
- XmlNullResolver.cs
- DefaultSerializationProviderAttribute.cs
- SymbolEqualComparer.cs
- UrlPropertyAttribute.cs
- WebControlParameterProxy.cs
- OverflowException.cs
- DCSafeHandle.cs