Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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()
{
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReachSerializationCacheItems.cs
- InputLangChangeRequestEvent.cs
- StorageSetMapping.cs
- TaskHelper.cs
- TextTreeUndoUnit.cs
- TaskbarItemInfo.cs
- HMACSHA384.cs
- EventLogSession.cs
- XamlLoadErrorInfo.cs
- CredentialCache.cs
- ActivationArguments.cs
- DataObject.cs
- HandlerFactoryWrapper.cs
- TextEditorCopyPaste.cs
- IssuanceTokenProviderState.cs
- FileUpload.cs
- BaseAppDomainProtocolHandler.cs
- MaskedTextBoxTextEditorDropDown.cs
- UnmanagedMemoryStreamWrapper.cs
- SourceFileInfo.cs
- WmlListAdapter.cs
- EventRecordWrittenEventArgs.cs
- _ListenerRequestStream.cs
- XPathNodeIterator.cs
- SiteMapPath.cs
- XmlCharType.cs
- RulePatternOps.cs
- DataComponentMethodGenerator.cs
- PenCursorManager.cs
- TabControlCancelEvent.cs
- EntityDataSourceValidationException.cs
- AQNBuilder.cs
- TaskScheduler.cs
- HttpCapabilitiesBase.cs
- SingleTagSectionHandler.cs
- HtmlInputButton.cs
- BitmapEffectInput.cs
- ExpressionNode.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- SoapInteropTypes.cs
- DropShadowBitmapEffect.cs
- InkSerializer.cs
- HtmlTableCellCollection.cs
- InfoCardKeyedHashAlgorithm.cs
- XamlReaderHelper.cs
- RawStylusInputReport.cs
- MimeXmlImporter.cs
- ExtendedProtectionPolicy.cs
- UnsafeNativeMethods.cs
- DropDownList.cs
- RoleManagerEventArgs.cs
- RightsManagementEncryptionTransform.cs
- SuppressMergeCheckAttribute.cs
- TreeViewDesigner.cs
- RichTextBoxAutomationPeer.cs
- DateTimeFormatInfoScanner.cs
- UpdateCommand.cs
- ListDictionaryInternal.cs
- AppDomainGrammarProxy.cs
- Attributes.cs
- DateTimeFormatInfo.cs
- RoutedCommand.cs
- StreamAsIStream.cs
- TextTreeExtractElementUndoUnit.cs
- BmpBitmapEncoder.cs
- InkCanvasFeedbackAdorner.cs
- ColorConvertedBitmap.cs
- DbXmlEnabledProviderManifest.cs
- EdmProviderManifest.cs
- ReferenceConverter.cs
- EmbeddedMailObjectsCollection.cs
- CustomValidator.cs
- AppendHelper.cs
- AppDomainProtocolHandler.cs
- Propagator.ExtentPlaceholderCreator.cs
- SymbolPair.cs
- ElapsedEventArgs.cs
- DataObjectMethodAttribute.cs
- RegistryKey.cs
- MethodBuilder.cs
- WebEventTraceProvider.cs
- Errors.cs
- GB18030Encoding.cs
- ConfigurationManagerInternalFactory.cs
- TemplateLookupAction.cs
- PointAnimationUsingKeyFrames.cs
- RangeValidator.cs
- CFStream.cs
- FrameworkElementFactory.cs
- SafeRegistryHandle.cs
- TypedReference.cs
- EventLogEntry.cs
- HttpValueCollection.cs
- X509ClientCertificateAuthenticationElement.cs
- ResourceIDHelper.cs
- ScrollData.cs
- _ShellExpression.cs
- SafeBitVector32.cs
- XmlSchemaInfo.cs
- RegisteredArrayDeclaration.cs