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
- Compress.cs
- ConfigurationStrings.cs
- PublisherMembershipCondition.cs
- WebPartCatalogCloseVerb.cs
- Command.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FtpCachePolicyElement.cs
- Geometry.cs
- isolationinterop.cs
- ColumnHeaderCollectionEditor.cs
- AsymmetricKeyExchangeDeformatter.cs
- CacheManager.cs
- wgx_sdk_version.cs
- AliasExpr.cs
- XmlILConstructAnalyzer.cs
- DataGridColumnCollection.cs
- DocumentApplicationJournalEntry.cs
- LexicalChunk.cs
- SafeCoTaskMem.cs
- LambdaExpression.cs
- Container.cs
- LinqDataSourceDisposeEventArgs.cs
- LocalBuilder.cs
- UTF7Encoding.cs
- InvokeMethodActivityDesigner.cs
- DataTableReader.cs
- UrlMapping.cs
- ErrorFormatterPage.cs
- WindowExtensionMethods.cs
- ToolStripSplitStackLayout.cs
- WsdlWriter.cs
- LifetimeManager.cs
- ParseChildrenAsPropertiesAttribute.cs
- HtmlButton.cs
- SimpleTypeResolver.cs
- OracleFactory.cs
- UIElement3D.cs
- PrinterResolution.cs
- ECDsaCng.cs
- VersionedStreamOwner.cs
- GetPageCompletedEventArgs.cs
- GridViewRowPresenterBase.cs
- PartBasedPackageProperties.cs
- EntityReference.cs
- FindSimilarActivitiesVerb.cs
- LinqToSqlWrapper.cs
- X509Certificate.cs
- HealthMonitoringSection.cs
- XmlMapping.cs
- FontConverter.cs
- IdentitySection.cs
- ButtonStandardAdapter.cs
- RegexCode.cs
- WebSysDescriptionAttribute.cs
- ResourceDefaultValueAttribute.cs
- BitmapEditor.cs
- AutomationPropertyInfo.cs
- SoapSchemaImporter.cs
- _NTAuthentication.cs
- IndexerNameAttribute.cs
- connectionpool.cs
- BaseCodeDomTreeGenerator.cs
- DynamicControl.cs
- OdbcErrorCollection.cs
- XamlSerializerUtil.cs
- TargetConverter.cs
- XmlSchemaExternal.cs
- Int64.cs
- ExpressionEditorAttribute.cs
- SkewTransform.cs
- Transactions.cs
- CheckBoxDesigner.cs
- WorkflowServiceHostFactory.cs
- PerformanceCounterNameAttribute.cs
- _AutoWebProxyScriptWrapper.cs
- TimeoutException.cs
- JsonStringDataContract.cs
- FontFamily.cs
- X509IssuerSerialKeyIdentifierClause.cs
- GenericRootAutomationPeer.cs
- OraclePermissionAttribute.cs
- Metafile.cs
- FileController.cs
- MultipartContentParser.cs
- TrustLevelCollection.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ToolStripDropDownItemDesigner.cs
- ListChunk.cs
- BeginStoryboard.cs
- ConnectionManagementSection.cs
- Line.cs
- FrameworkTextComposition.cs
- PointCollectionValueSerializer.cs
- NativeMethods.cs
- AggregatePushdown.cs
- Perspective.cs
- FontStretchConverter.cs
- ConfigurationValidatorBase.cs
- TemplateField.cs
- WebDisplayNameAttribute.cs