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
- ValidationResult.cs
- OneToOneMappingSerializer.cs
- XPathNodeHelper.cs
- SmtpSection.cs
- NativeMethods.cs
- XmlUrlResolver.cs
- XNameTypeConverter.cs
- XmlUrlResolver.cs
- ZipIOCentralDirectoryBlock.cs
- ConfigurationSectionGroup.cs
- StringResourceManager.cs
- RectValueSerializer.cs
- BodyGlyph.cs
- DiscriminatorMap.cs
- AccessorTable.cs
- RenderContext.cs
- Stream.cs
- CalendarButton.cs
- EmbeddedMailObjectsCollection.cs
- DataGridCaption.cs
- ArgumentException.cs
- ByteStreamMessageEncodingElement.cs
- ToolboxItemFilterAttribute.cs
- SqlTriggerAttribute.cs
- NavigationWindow.cs
- PageTheme.cs
- GeometryDrawing.cs
- ToolStrip.cs
- FileIOPermission.cs
- UriSectionData.cs
- XmlSchemaAnnotation.cs
- SiteMapNodeItemEventArgs.cs
- TypeElement.cs
- NavigationWindow.cs
- XmlSchemaResource.cs
- ExtensionFile.cs
- XmlSchemas.cs
- DataGridParentRows.cs
- HostingEnvironmentWrapper.cs
- _SslSessionsCache.cs
- DesignerToolStripControlHost.cs
- MemoryFailPoint.cs
- TargetConverter.cs
- UInt64.cs
- _emptywebproxy.cs
- XsltArgumentList.cs
- HatchBrush.cs
- DataFieldCollectionEditor.cs
- DetailsViewRow.cs
- ValueType.cs
- DiagnosticsConfigurationHandler.cs
- IgnoreDataMemberAttribute.cs
- DNS.cs
- ImageInfo.cs
- FontSourceCollection.cs
- DoubleLinkListEnumerator.cs
- OAVariantLib.cs
- Int64KeyFrameCollection.cs
- MimeObjectFactory.cs
- DataGridViewDataConnection.cs
- ObjectConverter.cs
- CompositeKey.cs
- FontCacheUtil.cs
- SQLInt64.cs
- FullTextBreakpoint.cs
- DataKeyCollection.cs
- CoreSwitches.cs
- SerializableTypeCodeDomSerializer.cs
- UnmanagedBitmapWrapper.cs
- StreamFormatter.cs
- RelationshipNavigation.cs
- entityreference_tresulttype.cs
- PageBuildProvider.cs
- TableHeaderCell.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlElementCollection.cs
- SequenceDesigner.xaml.cs
- SaveLedgerEntryRequest.cs
- AnimationClock.cs
- TemplateColumn.cs
- ICspAsymmetricAlgorithm.cs
- ObjectHandle.cs
- XmlChoiceIdentifierAttribute.cs
- CatalogZoneBase.cs
- XmlElementAttributes.cs
- EastAsianLunisolarCalendar.cs
- OdbcInfoMessageEvent.cs
- ActivityCodeDomSerializer.cs
- XDRSchema.cs
- _HTTPDateParse.cs
- RelationshipConverter.cs
- SqlCommandSet.cs
- ActivityValidationServices.cs
- ComplexPropertyEntry.cs
- cookiecollection.cs
- EncodingInfo.cs
- NavigationProgressEventArgs.cs
- DataPointer.cs
- SqlDataSourceQueryEditorForm.cs
- StyleXamlTreeBuilder.cs