Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OracleString.cs
- Button.cs
- WindowsStartMenu.cs
- ObjectFullSpanRewriter.cs
- ArrangedElementCollection.cs
- WSSecurityPolicy12.cs
- ScopelessEnumAttribute.cs
- HttpHandlersSection.cs
- XamlRtfConverter.cs
- X509UI.cs
- MissingMemberException.cs
- Drawing.cs
- BindableTemplateBuilder.cs
- StringFreezingAttribute.cs
- WindowsFormsEditorServiceHelper.cs
- HtmlTernaryTree.cs
- WebDisplayNameAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- EntityType.cs
- ApplicationHost.cs
- TablePatternIdentifiers.cs
- ObjectIDGenerator.cs
- XmlSchemaSimpleType.cs
- ShaderEffect.cs
- TreeIterator.cs
- Int32Animation.cs
- ConfigurationSectionGroupCollection.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- CompModSwitches.cs
- WizardPanel.cs
- ListenerAdapter.cs
- OdbcError.cs
- SimpleParser.cs
- TimeStampChecker.cs
- CompositionDesigner.cs
- SessionPageStatePersister.cs
- EventListener.cs
- _TLSstream.cs
- XmlTextAttribute.cs
- PropertyInfo.cs
- UIElement.cs
- ReaderContextStackData.cs
- PerformanceCounterTraceRecord.cs
- DynamicAttribute.cs
- PackageFilter.cs
- GridView.cs
- BitmapEffectGeneralTransform.cs
- DocumentGridPage.cs
- InvalidPrinterException.cs
- MatrixConverter.cs
- ListViewTableRow.cs
- CompiledQuery.cs
- RealizationDrawingContextWalker.cs
- EndEvent.cs
- TargetConverter.cs
- ThousandthOfEmRealPoints.cs
- CookieProtection.cs
- DataFormats.cs
- SocketInformation.cs
- PasswordPropertyTextAttribute.cs
- TimeSpanSecondsConverter.cs
- ElementsClipboardData.cs
- AsyncContentLoadedEventArgs.cs
- AttributeParameterInfo.cs
- AnnotationMap.cs
- DataServiceQuery.cs
- ThreadPoolTaskScheduler.cs
- WebPartConnectionsConfigureVerb.cs
- ListViewUpdateEventArgs.cs
- Speller.cs
- XmlTextReaderImpl.cs
- HitTestDrawingContextWalker.cs
- DescendantBaseQuery.cs
- SafeIUnknown.cs
- PartManifestEntry.cs
- DisplayClaim.cs
- InstancePersistenceCommandException.cs
- ProgressBar.cs
- DefaultProxySection.cs
- TreeNodeCollection.cs
- ApplicationSecurityManager.cs
- UserUseLicenseDictionaryLoader.cs
- PropertyInfoSet.cs
- ExternalException.cs
- Math.cs
- BufferedStream.cs
- ImageListImage.cs
- ValueUnavailableException.cs
- WebConfigurationFileMap.cs
- FontFamily.cs
- Privilege.cs
- XPathDocumentBuilder.cs
- MatrixAnimationBase.cs
- MenuItemStyle.cs
- MetadataArtifactLoaderCompositeFile.cs
- StatusStrip.cs
- ObjectMemberMapping.cs
- DataBindingExpressionBuilder.cs
- InputScope.cs
- ApplicationServiceHelper.cs