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
- CommandHelper.cs
- QilDataSource.cs
- SoapHeaderAttribute.cs
- ADMembershipProvider.cs
- Collection.cs
- HeaderCollection.cs
- OleDbInfoMessageEvent.cs
- QueryStringConverter.cs
- Single.cs
- TableRowGroupCollection.cs
- ToolStripPanel.cs
- Grid.cs
- CodeStatement.cs
- TypeBuilder.cs
- NativeMethods.cs
- XmlValidatingReaderImpl.cs
- RadioButtonRenderer.cs
- Rijndael.cs
- DocumentViewerConstants.cs
- Module.cs
- DataServiceEntityAttribute.cs
- Table.cs
- WebServiceErrorEvent.cs
- MasterPageParser.cs
- GenericsInstances.cs
- BridgeDataReader.cs
- StyleXamlParser.cs
- XmlSchemaSubstitutionGroup.cs
- ISCIIEncoding.cs
- DataGridViewColumnCollection.cs
- SystemPens.cs
- KeyValuePairs.cs
- Claim.cs
- translator.cs
- DataError.cs
- BinaryObjectReader.cs
- SqlClientMetaDataCollectionNames.cs
- ObservableCollection.cs
- ControlBindingsCollection.cs
- ObjectIDGenerator.cs
- FontStyle.cs
- ControlPropertyNameConverter.cs
- SqlDataReaderSmi.cs
- DecoderFallback.cs
- ProcessHostFactoryHelper.cs
- EmbeddedMailObjectsCollection.cs
- TimeoutException.cs
- DecoderFallbackWithFailureFlag.cs
- KeyFrames.cs
- InvalidOperationException.cs
- PublisherMembershipCondition.cs
- SqlExpressionNullability.cs
- SlipBehavior.cs
- PropertyChangeTracker.cs
- HttpRequest.cs
- InstanceLockQueryResult.cs
- Misc.cs
- NavigateEvent.cs
- TreeNodeEventArgs.cs
- SessionStateModule.cs
- GlobalEventManager.cs
- ComponentCodeDomSerializer.cs
- HttpPostedFile.cs
- RuntimeWrappedException.cs
- ListViewHitTestInfo.cs
- TextEditorTables.cs
- ObjectAssociationEndMapping.cs
- BamlReader.cs
- XPathSelectionIterator.cs
- SettingsPropertyValueCollection.cs
- HeaderElement.cs
- XmlElementCollection.cs
- FileFormatException.cs
- controlskin.cs
- ZoneButton.cs
- VBCodeProvider.cs
- BaseAutoFormat.cs
- NotSupportedException.cs
- LinkedDataMemberFieldEditor.cs
- InfoCardListRequest.cs
- ISAPIRuntime.cs
- RemotingConfigParser.cs
- CacheHelper.cs
- MetadataCollection.cs
- SqlCommandBuilder.cs
- RegistryKey.cs
- x509utils.cs
- CellQuery.cs
- EntityDataSourceDataSelection.cs
- HtmlProps.cs
- ObjectQueryExecutionPlan.cs
- HtmlEmptyTagControlBuilder.cs
- XmlSchemaElement.cs
- TextWriter.cs
- CommandPlan.cs
- ScopelessEnumAttribute.cs
- BamlResourceSerializer.cs
- COMException.cs
- VersionPair.cs
- DBDataPermissionAttribute.cs