Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DebugView.cs
- Expr.cs
- BaseCodeDomTreeGenerator.cs
- XmlNamespaceDeclarationsAttribute.cs
- ByteStorage.cs
- PrePrepareMethodAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SevenBitStream.cs
- StoryFragments.cs
- UniqueConstraint.cs
- _AutoWebProxyScriptEngine.cs
- DeleteCardRequest.cs
- DataBindingHandlerAttribute.cs
- DEREncoding.cs
- SqlSupersetValidator.cs
- SqlStream.cs
- InterleavedZipPartStream.cs
- KnownAssemblyEntry.cs
- TcpChannelFactory.cs
- SimpleHandlerBuildProvider.cs
- AutoCompleteStringCollection.cs
- safelinkcollection.cs
- InternalBufferManager.cs
- ZipPackagePart.cs
- CommandLineParser.cs
- RenamedEventArgs.cs
- PageThemeParser.cs
- TextPointer.cs
- FillRuleValidation.cs
- AttachedProperty.cs
- MimeMultiPart.cs
- ByteBufferPool.cs
- XmlSerializerFactory.cs
- ConnectionManagementSection.cs
- SqlRewriteScalarSubqueries.cs
- StyleSheetComponentEditor.cs
- HierarchicalDataBoundControlAdapter.cs
- MaterializeFromAtom.cs
- InputScopeConverter.cs
- SortKey.cs
- CodeGenerator.cs
- SR.cs
- AuthorizationPolicyTypeElement.cs
- SpeechEvent.cs
- ParameterToken.cs
- TraceUtils.cs
- LinearGradientBrush.cs
- TextRangeBase.cs
- LayoutManager.cs
- X509ChainElement.cs
- QueryStatement.cs
- ToolboxComponentsCreatedEventArgs.cs
- WhitespaceRule.cs
- UIElement.cs
- SystemInformation.cs
- SelectorAutomationPeer.cs
- StylusPlugInCollection.cs
- DataGridViewAccessibleObject.cs
- ResourceProperty.cs
- HttpAsyncResult.cs
- PartialToken.cs
- BinaryMethodMessage.cs
- BamlTreeMap.cs
- ConfigXmlSignificantWhitespace.cs
- TraceContextRecord.cs
- DeclarativeConditionsCollection.cs
- MsmqMessageSerializationFormat.cs
- TripleDESCryptoServiceProvider.cs
- InvalidProgramException.cs
- DropShadowEffect.cs
- ResolveCompletedEventArgs.cs
- WebControlsSection.cs
- ValidatedMobileControlConverter.cs
- CfgSemanticTag.cs
- TabControl.cs
- GridViewColumnCollection.cs
- SpellerHighlightLayer.cs
- NameValueSectionHandler.cs
- BuilderPropertyEntry.cs
- GlobalizationSection.cs
- ElementNotEnabledException.cs
- ParseElement.cs
- DelegateArgument.cs
- TTSEngineTypes.cs
- Margins.cs
- StackBuilderSink.cs
- Accessible.cs
- HtmlInputRadioButton.cs
- SecurityPolicySection.cs
- SafeFileHandle.cs
- ImageField.cs
- CacheAxisQuery.cs
- Executor.cs
- Transform3DGroup.cs
- ClientFormsAuthenticationCredentials.cs
- Utility.cs
- Menu.cs
- XmlCharCheckingWriter.cs
- UIAgentRequest.cs
- OlePropertyStructs.cs