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
- WorkflowApplicationEventArgs.cs
- ActiveXSite.cs
- LoginUtil.cs
- SchemaTableColumn.cs
- SQLByte.cs
- KeyFrames.cs
- Button.cs
- RelationshipConverter.cs
- Input.cs
- SecurityDescriptor.cs
- XmlRawWriter.cs
- Brushes.cs
- WebPartDescription.cs
- Rfc2898DeriveBytes.cs
- Errors.cs
- Rectangle.cs
- IdnElement.cs
- _NativeSSPI.cs
- SkipStoryboardToFill.cs
- Empty.cs
- StatusBarItem.cs
- ColumnMapTranslator.cs
- RectangleConverter.cs
- TrailingSpaceComparer.cs
- SoapTransportImporter.cs
- MultiByteCodec.cs
- ErrorActivity.cs
- OpenTypeCommon.cs
- CuspData.cs
- BulletedListEventArgs.cs
- CollectionViewGroup.cs
- InstalledVoice.cs
- X509RawDataKeyIdentifierClause.cs
- CatchDesigner.xaml.cs
- WindowsNonControl.cs
- PowerModeChangedEventArgs.cs
- MaskedTextBoxTextEditor.cs
- AdornedElementPlaceholder.cs
- CallbackValidatorAttribute.cs
- DefaultMemberAttribute.cs
- ContactManager.cs
- SafeNativeMethods.cs
- MulticastIPAddressInformationCollection.cs
- ColorMatrix.cs
- ProcessInputEventArgs.cs
- TextTrailingWordEllipsis.cs
- XmlDomTextWriter.cs
- Sql8ConformanceChecker.cs
- InfoCardArgumentException.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ModuleConfigurationInfo.cs
- NamespaceQuery.cs
- CompModSwitches.cs
- WebContentFormatHelper.cs
- RectAnimation.cs
- SafeEventHandle.cs
- TableRowsCollectionEditor.cs
- RequestCacheManager.cs
- ConfigXmlText.cs
- DataGridViewSelectedColumnCollection.cs
- MailMessageEventArgs.cs
- PersonalizationStateInfo.cs
- ProfileSection.cs
- ListMarkerSourceInfo.cs
- CompModHelpers.cs
- SecurityTokenException.cs
- BitmapPalettes.cs
- SqlConnection.cs
- Method.cs
- CircleHotSpot.cs
- XsltOutput.cs
- DispatcherHookEventArgs.cs
- SocketException.cs
- TextDecoration.cs
- UmAlQuraCalendar.cs
- ListViewSortEventArgs.cs
- CryptoApi.cs
- AddInSegmentDirectoryNotFoundException.cs
- MetadataUtilsSmi.cs
- SelectedDatesCollection.cs
- WebBrowserEvent.cs
- Brush.cs
- InputLangChangeRequestEvent.cs
- HttpDictionary.cs
- ConditionalAttribute.cs
- ExpressionDumper.cs
- TranslateTransform.cs
- RsaSecurityKey.cs
- SelectionPatternIdentifiers.cs
- PropertySegmentSerializationProvider.cs
- ContentElementAutomationPeer.cs
- BrowserCapabilitiesCodeGenerator.cs
- ComplexBindingPropertiesAttribute.cs
- SqlCacheDependencySection.cs
- XsltFunctions.cs
- PropertyEmitter.cs
- AttachedAnnotation.cs
- RegexCompiler.cs
- CompressEmulationStream.cs
- CodeThrowExceptionStatement.cs