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
- FeatureSupport.cs
- AsnEncodedData.cs
- InputLanguageSource.cs
- DataColumnMappingCollection.cs
- XmlCharacterData.cs
- CodeExporter.cs
- JapaneseLunisolarCalendar.cs
- FormsAuthenticationConfiguration.cs
- RightNameExpirationInfoPair.cs
- Stroke.cs
- UniqueIdentifierService.cs
- Socket.cs
- SpellerError.cs
- X509Certificate.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ProcessModelInfo.cs
- XamlReader.cs
- ContainerParaClient.cs
- PeerPresenceInfo.cs
- StyleSelector.cs
- EventLogException.cs
- PropertyDescriptors.cs
- cookiecontainer.cs
- ItemCollection.cs
- RC2.cs
- TypeUnloadedException.cs
- WsatTransactionInfo.cs
- FtpCachePolicyElement.cs
- StateDesigner.Helpers.cs
- SubpageParagraph.cs
- TextEffect.cs
- Unit.cs
- XmlSchemaSimpleContent.cs
- RemoveStoryboard.cs
- ToolStripDropDownDesigner.cs
- DrawingVisual.cs
- Message.cs
- EntityCommand.cs
- ResourceDescriptionAttribute.cs
- EncodingDataItem.cs
- GridViewDeleteEventArgs.cs
- RadioButton.cs
- ErrorInfoXmlDocument.cs
- lengthconverter.cs
- Int64.cs
- MetadataItemSerializer.cs
- Vector3DValueSerializer.cs
- XXXOnTypeBuilderInstantiation.cs
- CfgSemanticTag.cs
- IntranetCredentialPolicy.cs
- CodeAttachEventStatement.cs
- ProcessHost.cs
- HtmlInputButton.cs
- WebPartVerbsEventArgs.cs
- SlipBehavior.cs
- tooltip.cs
- _UncName.cs
- X509InitiatorCertificateServiceElement.cs
- Interop.cs
- TypeUnloadedException.cs
- EntityDataSourceMemberPath.cs
- Transactions.cs
- ObjectSecurity.cs
- ProviderConnectionPoint.cs
- LocalizabilityAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- FileClassifier.cs
- RuntimeHelpers.cs
- ReturnType.cs
- XPathDocumentBuilder.cs
- BamlRecordReader.cs
- WorkflowTransactionOptions.cs
- PropagatorResult.cs
- DocumentAutomationPeer.cs
- Mutex.cs
- ServerIdentity.cs
- LayoutManager.cs
- EventListenerClientSide.cs
- ConfigXmlText.cs
- ConfigurationSettings.cs
- BooleanConverter.cs
- NegatedConstant.cs
- SqlDataReader.cs
- SqlUDTStorage.cs
- Nullable.cs
- sqlstateclientmanager.cs
- NotImplementedException.cs
- SafeNativeMethods.cs
- XamlContextStack.cs
- DetailsViewCommandEventArgs.cs
- ConstantSlot.cs
- SelectorItemAutomationPeer.cs
- RefExpr.cs
- WrappingXamlSchemaContext.cs
- ApplicationCommands.cs
- Size3D.cs
- VisualTreeUtils.cs
- ToolStripDesigner.cs
- JavaScriptObjectDeserializer.cs
- ExpressionDumper.cs