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
- SoapFault.cs
- HotCommands.cs
- safex509handles.cs
- NestedContainer.cs
- EntityKeyElement.cs
- PathData.cs
- StylusCollection.cs
- PropertyToken.cs
- Base64WriteStateInfo.cs
- ParseHttpDate.cs
- MSAANativeProvider.cs
- SignatureToken.cs
- _KerberosClient.cs
- Cursors.cs
- Assembly.cs
- OrderingQueryOperator.cs
- PolicyChain.cs
- WinInetCache.cs
- Item.cs
- SrgsNameValueTag.cs
- PropertyValueChangedEvent.cs
- HttpServerVarsCollection.cs
- LinearQuaternionKeyFrame.cs
- XmlSchemaAnyAttribute.cs
- GZipStream.cs
- SafeTimerHandle.cs
- WizardPanelChangingEventArgs.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- ResponseBodyWriter.cs
- GradientSpreadMethodValidation.cs
- SHA256CryptoServiceProvider.cs
- GridErrorDlg.cs
- DescendantQuery.cs
- DataGridViewToolTip.cs
- GridToolTip.cs
- StreamSecurityUpgradeAcceptor.cs
- ProcessHostServerConfig.cs
- ToolboxDataAttribute.cs
- XmlUtil.cs
- AncestorChangedEventArgs.cs
- PageSetupDialog.cs
- XPathBuilder.cs
- ArrayWithOffset.cs
- SqlVersion.cs
- OneWayChannelFactory.cs
- MsmqMessageProperty.cs
- OdbcConnectionHandle.cs
- ConfigurationStrings.cs
- PropertyDescriptorComparer.cs
- ApplyTemplatesAction.cs
- SystemIcmpV6Statistics.cs
- TemplateComponentConnector.cs
- RowParagraph.cs
- FieldNameLookup.cs
- _ServiceNameStore.cs
- CodeAttachEventStatement.cs
- IISUnsafeMethods.cs
- EngineSiteSapi.cs
- DefaultWorkflowSchedulerService.cs
- ContentValidator.cs
- Application.cs
- ScriptControlDescriptor.cs
- BuilderPropertyEntry.cs
- SafeSecurityHelper.cs
- TypeUtil.cs
- RepeatButtonAutomationPeer.cs
- DbDataRecord.cs
- SqlWebEventProvider.cs
- WebPartManager.cs
- ValidationErrorEventArgs.cs
- CharUnicodeInfo.cs
- ColumnTypeConverter.cs
- DropTarget.cs
- AttachedAnnotation.cs
- GridView.cs
- DetailsViewPageEventArgs.cs
- PeerToPeerException.cs
- DataListItemEventArgs.cs
- SoapFaultCodes.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- BrowserCapabilitiesCompiler.cs
- Padding.cs
- FacetValueContainer.cs
- ActiveXHost.cs
- RegexWriter.cs
- AsyncCompletedEventArgs.cs
- COM2Enum.cs
- HeaderCollection.cs
- GenericUriParser.cs
- Graph.cs
- ArithmeticException.cs
- GeneratedCodeAttribute.cs
- EntityContainerEmitter.cs
- SectionXmlInfo.cs
- DoubleConverter.cs
- EntityType.cs
- XPathDocumentIterator.cs
- ConnectionManagementSection.cs
- SafeFindHandle.cs
- FontStyle.cs