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
- PermissionSetEnumerator.cs
- ReadOnlyHierarchicalDataSource.cs
- UInt32.cs
- SmiConnection.cs
- ExpandableObjectConverter.cs
- SerialStream.cs
- PersonalizationState.cs
- XmlEntityReference.cs
- WebPartVerb.cs
- FormViewUpdatedEventArgs.cs
- FlowNode.cs
- DataServiceHostFactory.cs
- DataRelation.cs
- IFlowDocumentViewer.cs
- Point3DAnimation.cs
- NativeMethods.cs
- DateTimeUtil.cs
- EventOpcode.cs
- MenuItemBindingCollection.cs
- ToolStripRenderEventArgs.cs
- AlgoModule.cs
- ParallelTimeline.cs
- TaskDesigner.cs
- Source.cs
- EntityCollection.cs
- PageFunction.cs
- SmtpSection.cs
- GPRECTF.cs
- Size3DValueSerializer.cs
- DeviceContext.cs
- SafeBitVector32.cs
- DisableDpiAwarenessAttribute.cs
- KerberosReceiverSecurityToken.cs
- ToolStripDesignerUtils.cs
- IDReferencePropertyAttribute.cs
- WebWorkflowRole.cs
- CookielessHelper.cs
- MergeLocalizationDirectives.cs
- AjaxFrameworkAssemblyAttribute.cs
- XmlAttributeProperties.cs
- HttpWebResponse.cs
- Cursors.cs
- DataListItem.cs
- Cursors.cs
- BitStream.cs
- SchemaEntity.cs
- ClientTargetCollection.cs
- DataGridViewBindingCompleteEventArgs.cs
- HitTestResult.cs
- TypeElementCollection.cs
- AuthenticationService.cs
- DictionaryKeyPropertyAttribute.cs
- PrintingPermissionAttribute.cs
- PnrpPermission.cs
- ObsoleteAttribute.cs
- ControlAdapter.cs
- HttpWebRequest.cs
- Serializer.cs
- WindowsListViewScroll.cs
- MethodImplAttribute.cs
- ColorKeyFrameCollection.cs
- EventBuilder.cs
- HandlerMappingMemo.cs
- ErrorItem.cs
- TemplateControlCodeDomTreeGenerator.cs
- MouseGesture.cs
- AsymmetricAlgorithm.cs
- InteropBitmapSource.cs
- TextTreeRootNode.cs
- DocumentReferenceCollection.cs
- ResolvedKeyFrameEntry.cs
- XmlSchemaSequence.cs
- ProxyAttribute.cs
- MarkupExtensionReturnTypeAttribute.cs
- DataBindingList.cs
- JsonCollectionDataContract.cs
- MailDefinition.cs
- OutOfProcStateClientManager.cs
- Executor.cs
- RSAOAEPKeyExchangeFormatter.cs
- ObjectNotFoundException.cs
- HttpClientProtocol.cs
- MenuCommands.cs
- ExtendedPropertyDescriptor.cs
- SQLDoubleStorage.cs
- List.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataSourceControl.cs
- TextElement.cs
- TypeReference.cs
- XmlTextReaderImplHelpers.cs
- Int32RectConverter.cs
- MembershipUser.cs
- FileStream.cs
- SafeViewOfFileHandle.cs
- XsltContext.cs
- XmlValidatingReaderImpl.cs
- RoleGroupCollectionEditor.cs
- AsymmetricKeyExchangeDeformatter.cs
- ScrollableControl.cs