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
- XmlNamedNodeMap.cs
- util.cs
- SigningCredentials.cs
- ParserHooks.cs
- EntityModelBuildProvider.cs
- TraceListener.cs
- ReaderWriterLock.cs
- OleDbCommandBuilder.cs
- PagesSection.cs
- HtmlGenericControl.cs
- ScrollBarAutomationPeer.cs
- WaitForChangedResult.cs
- SiteMapDataSource.cs
- XmlEnumAttribute.cs
- PresentationTraceSources.cs
- WebPartDeleteVerb.cs
- SourceElementsCollection.cs
- EncryptionUtility.cs
- ListItem.cs
- DefaultValueConverter.cs
- OrderedDictionary.cs
- XmlSchemaSubstitutionGroup.cs
- BitmapVisualManager.cs
- NotCondition.cs
- KeyTimeConverter.cs
- Queue.cs
- ImageListDesigner.cs
- ListView.cs
- StrongName.cs
- TraceRecord.cs
- GreenMethods.cs
- WebServiceEnumData.cs
- PKCS1MaskGenerationMethod.cs
- UInt16Converter.cs
- SerializationObjectManager.cs
- WebEventCodes.cs
- TransformFinalBlockRequest.cs
- BitmapEffectRenderDataResource.cs
- LineSegment.cs
- SerTrace.cs
- StylusTip.cs
- SystemResources.cs
- NoResizeHandleGlyph.cs
- UnsafePeerToPeerMethods.cs
- LocalValueEnumerator.cs
- PersonalizablePropertyEntry.cs
- CallContext.cs
- FrameworkRichTextComposition.cs
- ObjectDataSourceEventArgs.cs
- TabItemAutomationPeer.cs
- HttpResponseHeader.cs
- ContainerParagraph.cs
- Inflater.cs
- ComplexPropertyEntry.cs
- _NativeSSPI.cs
- PackWebRequestFactory.cs
- SelectorItemAutomationPeer.cs
- ClipboardProcessor.cs
- GridViewCommandEventArgs.cs
- WebPartExportVerb.cs
- BuilderPropertyEntry.cs
- DocumentCollection.cs
- BaseDataListPage.cs
- PrintDocument.cs
- CodeArrayCreateExpression.cs
- DataGridTextBox.cs
- Rotation3DAnimationUsingKeyFrames.cs
- BCryptSafeHandles.cs
- ColumnResizeUndoUnit.cs
- Composition.cs
- CssClassPropertyAttribute.cs
- DateRangeEvent.cs
- ConstructorArgumentAttribute.cs
- XamlToRtfWriter.cs
- XmlSchemaDatatype.cs
- CatalogZone.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- followingquery.cs
- MediaTimeline.cs
- PathFigure.cs
- CfgSemanticTag.cs
- EventSourceCreationData.cs
- EventTask.cs
- TextBoxView.cs
- Debug.cs
- UIElement3D.cs
- TextEncodedRawTextWriter.cs
- QilGeneratorEnv.cs
- EmbeddedMailObjectCollectionEditor.cs
- OutputCacheSettings.cs
- DropDownButton.cs
- GridProviderWrapper.cs
- DefaultMergeHelper.cs
- IndependentAnimationStorage.cs
- ClientScriptManagerWrapper.cs
- MetadataArtifactLoader.cs
- SqlRecordBuffer.cs
- GorillaCodec.cs
- SequentialWorkflowHeaderFooter.cs
- Scalars.cs