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
- HuffModule.cs
- EntityTypeEmitter.cs
- Object.cs
- TearOffProxy.cs
- Helper.cs
- ThrowHelper.cs
- wmiprovider.cs
- DataGridColumn.cs
- xmlformatgeneratorstatics.cs
- SqlFactory.cs
- Debugger.cs
- CapabilitiesPattern.cs
- SizeConverter.cs
- Literal.cs
- JoinElimination.cs
- InternalMappingException.cs
- DataTableNewRowEvent.cs
- SimpleApplicationHost.cs
- CreateUserWizard.cs
- ProfileGroupSettings.cs
- WebBrowser.cs
- XXXInfos.cs
- DecoderFallback.cs
- _KerberosClient.cs
- XhtmlBasicPageAdapter.cs
- OutputCacheSection.cs
- ParenthesizePropertyNameAttribute.cs
- XmlSchemaSimpleTypeRestriction.cs
- SelectionItemProviderWrapper.cs
- Accessible.cs
- XmlSchemaCollection.cs
- PrimaryKeyTypeConverter.cs
- NonParentingControl.cs
- AuthenticationSection.cs
- XmlObjectSerializerWriteContext.cs
- TheQuery.cs
- CalendarTable.cs
- AnimationException.cs
- SecurityException.cs
- WebBaseEventKeyComparer.cs
- MachineKeyConverter.cs
- Activity.cs
- CompositeActivityTypeDescriptorProvider.cs
- Propagator.JoinPropagator.cs
- XmlDataSource.cs
- XmlQueryStaticData.cs
- ObjectViewListener.cs
- HtmlContainerControl.cs
- WebDisplayNameAttribute.cs
- SpellerInterop.cs
- Code.cs
- MemoryPressure.cs
- ExtendedPropertyCollection.cs
- CheckBox.cs
- BuildProviderCollection.cs
- CodeDomSerializationProvider.cs
- SqlDataSourceQueryEditor.cs
- _ProxyRegBlob.cs
- TextSimpleMarkerProperties.cs
- VersionPair.cs
- NextPreviousPagerField.cs
- XmlSequenceWriter.cs
- ClientConfigPaths.cs
- CategoryNameCollection.cs
- CustomError.cs
- SourceFileBuildProvider.cs
- EtwTrace.cs
- WorkflowApplicationAbortedException.cs
- TransformProviderWrapper.cs
- StreamWriter.cs
- TypeConverter.cs
- StickyNoteHelper.cs
- Stack.cs
- ModuleBuilder.cs
- BindingMemberInfo.cs
- DocumentStatusResources.cs
- Expander.cs
- DateTimeConstantAttribute.cs
- InternalResources.cs
- MaskedTextBoxTextEditorDropDown.cs
- SqlTopReducer.cs
- MetadataItemCollectionFactory.cs
- TraceHandler.cs
- ScrollProperties.cs
- XomlCompilerError.cs
- DataFieldEditor.cs
- ListBox.cs
- TreeNodeEventArgs.cs
- SetStateEventArgs.cs
- SessionStateSection.cs
- TextEffect.cs
- ButtonPopupAdapter.cs
- StateBag.cs
- WebSysDisplayNameAttribute.cs
- UnsupportedPolicyOptionsException.cs
- ImageListStreamer.cs
- DataGridParentRows.cs
- ResponseBodyWriter.cs
- AbandonedMutexException.cs
- ListViewCancelEventArgs.cs