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
- ConcurrentDictionary.cs
- SecurityResources.cs
- ArraySubsetEnumerator.cs
- MulticastDelegate.cs
- LongTypeConverter.cs
- DescendantBaseQuery.cs
- DecodeHelper.cs
- CommandExpr.cs
- WindowsNonControl.cs
- EtwTrackingBehaviorElement.cs
- BaseEntityWrapper.cs
- OleDbConnectionInternal.cs
- DrawingCollection.cs
- HttpApplicationFactory.cs
- ObjectStateManager.cs
- ShaperBuffers.cs
- XamlReaderHelper.cs
- Fonts.cs
- SchemaNamespaceManager.cs
- DesignerCategoryAttribute.cs
- CollectionsUtil.cs
- TypeDescriptionProviderAttribute.cs
- StringConverter.cs
- CollectionBase.cs
- PropertyFilterAttribute.cs
- ColumnResizeUndoUnit.cs
- XmlComplianceUtil.cs
- DataMemberConverter.cs
- ProfilePropertySettings.cs
- SpeechUI.cs
- FrameworkObject.cs
- Mouse.cs
- WebPartCancelEventArgs.cs
- MaterialCollection.cs
- DES.cs
- DesignerCategoryAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- BitmapEffect.cs
- WorkflowServiceHost.cs
- IImplicitResourceProvider.cs
- TextBox.cs
- BinaryKeyIdentifierClause.cs
- SqlBinder.cs
- AttributeEmitter.cs
- GradientStop.cs
- QuotaThrottle.cs
- ExpressionParser.cs
- XmlSerializer.cs
- ProxyWebPartManagerDesigner.cs
- SourceChangedEventArgs.cs
- SelectionBorderGlyph.cs
- SecurityTokenInclusionMode.cs
- MessageUtil.cs
- ToggleButton.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FocusManager.cs
- Point3DKeyFrameCollection.cs
- WebPartManagerInternals.cs
- CompositionTarget.cs
- DynamicQueryableWrapper.cs
- TableCell.cs
- QuaternionRotation3D.cs
- PublisherMembershipCondition.cs
- AutomationPattern.cs
- SecureConversationServiceCredential.cs
- BamlBinaryReader.cs
- EncoderParameter.cs
- EventBuilder.cs
- Tracer.cs
- QuerySelectOp.cs
- OdbcParameter.cs
- Property.cs
- ApplicationHost.cs
- ValueTable.cs
- XmlDocument.cs
- ImageSourceConverter.cs
- XmlUrlEditor.cs
- SoapReflectionImporter.cs
- ScopelessEnumAttribute.cs
- SchemaCollectionPreprocessor.cs
- Material.cs
- Propagator.Evaluator.cs
- ReplacementText.cs
- SafeNativeMethodsCLR.cs
- SerialErrors.cs
- FilteredDataSetHelper.cs
- LinkDescriptor.cs
- COM2PropertyBuilderUITypeEditor.cs
- ImageIndexConverter.cs
- ZipFileInfo.cs
- ECDsaCng.cs
- CodeTypeReferenceSerializer.cs
- CodeTypeParameter.cs
- RandomNumberGenerator.cs
- HostProtectionException.cs
- TemplateXamlParser.cs
- FunctionParameter.cs
- DrawingCollection.cs
- ThemeDirectoryCompiler.cs
- DataGridViewUtilities.cs