Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Log / System / IO / Log / SafeArchiveContext.cs / 1305376 / SafeArchiveContext.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IO.Log { using System; using System.Runtime.InteropServices; using System.Runtime.ConstrainedExecution; using System.Runtime.Versioning; using System.Security; internal sealed class SafeArchiveContext : SafeHandle { public SafeArchiveContext() : base(IntPtr.Zero, true) { } public override bool IsInvalid { get { return IsClosed || this.handle == IntPtr.Zero; } } [DllImport("clfsw32.dll"), SuppressUnmanagedCodeSecurity, ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [ResourceExposure(ResourceScope.None)] private static extern bool TerminateLogArchive(IntPtr ptr); override protected bool ReleaseHandle() { return TerminateLogArchive(this.handle); } } } // 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
- xmlsaver.cs
- UrlPropertyAttribute.cs
- NegotiateStream.cs
- BaseParser.cs
- PseudoWebRequest.cs
- IChannel.cs
- UserValidatedEventArgs.cs
- ModuleElement.cs
- SerialErrors.cs
- CharStorage.cs
- ExpandSegmentCollection.cs
- SaveFileDialog.cs
- TableRowsCollectionEditor.cs
- OleDbPermission.cs
- TextBoxRenderer.cs
- SafeArrayRankMismatchException.cs
- InternalConfigEventArgs.cs
- ExpressionBinding.cs
- StylusCollection.cs
- LinearGradientBrush.cs
- Properties.cs
- BlurBitmapEffect.cs
- Stylesheet.cs
- BreakRecordTable.cs
- Symbol.cs
- GlyphsSerializer.cs
- SQLGuid.cs
- ADConnectionHelper.cs
- DifferencingCollection.cs
- SQLDouble.cs
- PtsHost.cs
- ObjectTokenCategory.cs
- WinFormsSecurity.cs
- DataRelationCollection.cs
- LinkTarget.cs
- Int16.cs
- StorageRoot.cs
- FromReply.cs
- DelayedRegex.cs
- ProvidePropertyAttribute.cs
- WindowsSpinner.cs
- IDispatchConstantAttribute.cs
- Inflater.cs
- StoreContentChangedEventArgs.cs
- SignerInfo.cs
- GetRecipientRequest.cs
- grammarelement.cs
- InvalidFilterCriteriaException.cs
- WebServiceMethodData.cs
- ObjectStateFormatter.cs
- DelegatedStream.cs
- Encoding.cs
- Fonts.cs
- PasswordBox.cs
- MemberExpression.cs
- LocalBuilder.cs
- InputManager.cs
- ArithmeticLiteral.cs
- AuthenticationConfig.cs
- ClientScriptManager.cs
- ArraySet.cs
- DecimalAnimationUsingKeyFrames.cs
- ListControlBoundActionList.cs
- TaskFileService.cs
- IriParsingElement.cs
- LinqDataSource.cs
- ExtensibleClassFactory.cs
- SectionInformation.cs
- ComAdminInterfaces.cs
- MimeBasePart.cs
- ComponentChangingEvent.cs
- IisTraceWebEventProvider.cs
- AppDomainManager.cs
- CompiledQuery.cs
- BaseTemplateParser.cs
- AuthenticationException.cs
- MetadataProperty.cs
- DataSourceCache.cs
- tabpagecollectioneditor.cs
- InternalMappingException.cs
- GlyphsSerializer.cs
- DoubleCollectionValueSerializer.cs
- HttpCachePolicyElement.cs
- documentsequencetextview.cs
- ProcessHostServerConfig.cs
- FontSource.cs
- WebAdminConfigurationHelper.cs
- ClientSettingsProvider.cs
- EntityCommandExecutionException.cs
- TagPrefixCollection.cs
- Variant.cs
- MessageFormatterConverter.cs
- StylusPointDescription.cs
- MailDefinition.cs
- LingerOption.cs
- MeasureData.cs
- DataControlFieldCollection.cs
- DataObject.cs
- ResolveNameEventArgs.cs
- WebPartsPersonalization.cs