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
- ObjectViewListener.cs
- CommandBinding.cs
- AbsoluteQuery.cs
- ReadOnlyState.cs
- Currency.cs
- GetMemberBinder.cs
- ObjectConverter.cs
- WhitespaceRule.cs
- ToolZone.cs
- COM2PropertyPageUITypeConverter.cs
- FilterException.cs
- StatusInfoItem.cs
- NativeMethods.cs
- FontFamilyValueSerializer.cs
- Stacktrace.cs
- Byte.cs
- ByteStorage.cs
- DiagnosticTraceSource.cs
- ChineseLunisolarCalendar.cs
- ContextMenuAutomationPeer.cs
- FixedFlowMap.cs
- TableSectionStyle.cs
- DataRowIndexBuffer.cs
- ServiceBusyException.cs
- SettingsPropertyValue.cs
- UInt16.cs
- Rect3D.cs
- PathGeometry.cs
- ByteAnimation.cs
- BitmapEffectGroup.cs
- ISAPIRuntime.cs
- WindowsListBox.cs
- QualifiedCellIdBoolean.cs
- SafeHandles.cs
- BoundField.cs
- SmiEventSink_Default.cs
- ToolStripItemRenderEventArgs.cs
- MediaContext.cs
- HostingPreferredMapPath.cs
- _Rfc2616CacheValidators.cs
- CodeSnippetTypeMember.cs
- Keywords.cs
- ErrorBehavior.cs
- TextTreeTextBlock.cs
- RemotingSurrogateSelector.cs
- DiffuseMaterial.cs
- AsyncResult.cs
- ReferencedCollectionType.cs
- _RequestCacheProtocol.cs
- XmlAttributeAttribute.cs
- ExcCanonicalXml.cs
- MethodBuilder.cs
- CodeTypeReferenceExpression.cs
- ServiceNameCollection.cs
- CodeDOMProvider.cs
- IArgumentProvider.cs
- LocalValueEnumerator.cs
- MemberPath.cs
- ToolStripInSituService.cs
- RayHitTestParameters.cs
- TCPListener.cs
- SessionStateContainer.cs
- WorkflowInstanceContextProvider.cs
- InputManager.cs
- DataControlButton.cs
- RouteValueExpressionBuilder.cs
- EditorZone.cs
- BuildDependencySet.cs
- GenericEnumerator.cs
- XmlDomTextWriter.cs
- HtmlButton.cs
- ExceptionRoutedEventArgs.cs
- DataColumnCollection.cs
- PropertyStore.cs
- Application.cs
- Identity.cs
- ScrollBarRenderer.cs
- QueryResponse.cs
- TextEffect.cs
- DefaultBindingPropertyAttribute.cs
- NotFiniteNumberException.cs
- EnvelopedSignatureTransform.cs
- MeasurementDCInfo.cs
- EntityClientCacheKey.cs
- XmlSigningNodeWriter.cs
- FragmentQueryKB.cs
- PropertySet.cs
- DataSet.cs
- ImageClickEventArgs.cs
- PackageDigitalSignature.cs
- HMACSHA384.cs
- DictionaryItemsCollection.cs
- WebPart.cs
- Utils.cs
- ValidationSummary.cs
- DataServiceQueryProvider.cs
- CodeMethodMap.cs
- ItemsPanelTemplate.cs
- TableRow.cs
- ResourceWriter.cs