Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / xws_reg / System / ServiceModel / Install / SafeTokenHandle.cs / 1 / SafeTokenHandle.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Install { using Microsoft.Win32.SafeHandles; using System; using System.ComponentModel; using System.Diagnostics; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Security.AccessControl; using System.Text; class SafeTokenHandle : SafeHandleZeroOrMinusOneIsInvalid { SafeTokenHandle() : base(true) { // empty } protected override bool ReleaseHandle() { #pragma warning suppress 56523 // [....]; We are not interested in throwing an exception here if CloseHandle fails. return NativeMethods.CloseHandle(this.handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlTextReaderImpl.cs
- XamlTemplateSerializer.cs
- AttributeUsageAttribute.cs
- ListBindableAttribute.cs
- IntSecurity.cs
- GeometryConverter.cs
- mda.cs
- Thumb.cs
- DataObjectEventArgs.cs
- VarRemapper.cs
- SelectorAutomationPeer.cs
- MessagePartProtectionMode.cs
- XmlLinkedNode.cs
- UInt16Storage.cs
- KernelTypeValidation.cs
- XmlName.cs
- ProcessManager.cs
- ThreadAttributes.cs
- Keywords.cs
- HttpModuleAction.cs
- EntityDataSourceViewSchema.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TdsValueSetter.cs
- StylusPoint.cs
- ScriptingProfileServiceSection.cs
- SchemaManager.cs
- SiteMapDataSource.cs
- MaskedTextBox.cs
- SubMenuStyle.cs
- SystemException.cs
- CodeCompiler.cs
- CurrentChangingEventArgs.cs
- SoapFormatExtensions.cs
- XmlArrayAttribute.cs
- SingleObjectCollection.cs
- InstalledFontCollection.cs
- TextFormatterContext.cs
- CompatibleIComparer.cs
- UserControlAutomationPeer.cs
- RuntimeResourceSet.cs
- GlyphRunDrawing.cs
- Utils.cs
- SystemWebExtensionsSectionGroup.cs
- TextTreeText.cs
- FixedTextBuilder.cs
- WS2007FederationHttpBinding.cs
- ContainerControl.cs
- RegisteredHiddenField.cs
- MasterPageBuildProvider.cs
- SiteMapNodeItemEventArgs.cs
- StaticSiteMapProvider.cs
- DbBuffer.cs
- invalidudtexception.cs
- ApplicationServiceManager.cs
- HttpProfileGroupBase.cs
- ReadOnlyDictionary.cs
- WebPartHeaderCloseVerb.cs
- ImageFormat.cs
- ToolStripLabel.cs
- CatalogPart.cs
- LexicalChunk.cs
- SynchronizedDispatch.cs
- Single.cs
- DateTimeStorage.cs
- ConfigurationCollectionAttribute.cs
- ReadOnlyCollectionBase.cs
- WindowsFormsSynchronizationContext.cs
- PersonalizableTypeEntry.cs
- DeviceFilterDictionary.cs
- TableStyle.cs
- UIElement3D.cs
- TableLayoutPanel.cs
- WebPartConnectionsDisconnectVerb.cs
- TextSegment.cs
- SendMailErrorEventArgs.cs
- UriTemplateLiteralQueryValue.cs
- DataTrigger.cs
- RequiredAttributeAttribute.cs
- DataServiceEntityAttribute.cs
- OutputCacheSettingsSection.cs
- WindowsFormsLinkLabel.cs
- XmlTextReaderImpl.cs
- TranslateTransform.cs
- SqlDeflator.cs
- ConfigurationElement.cs
- DataBinding.cs
- StringConverter.cs
- WebBrowserEvent.cs
- MsmqIntegrationValidationBehavior.cs
- RectangleGeometry.cs
- UnmanagedMarshal.cs
- DBCommand.cs
- BitmapDecoder.cs
- BuildResultCache.cs
- SByteStorage.cs
- WindowsGraphicsCacheManager.cs
- EncoderParameter.cs
- ExcludeFromCodeCoverageAttribute.cs
- ADMembershipProvider.cs
- MasterPageParser.cs