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
- WebPartConnectionsCloseVerb.cs
- ElementUtil.cs
- PermissionSet.cs
- CompositeDataBoundControl.cs
- FlagsAttribute.cs
- DateTimeOffsetStorage.cs
- ConcurrentQueue.cs
- ScrollBar.cs
- DataListItemEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- GroupBox.cs
- CapacityStreamGeometryContext.cs
- RelationshipWrapper.cs
- TimeoutException.cs
- CodeDelegateInvokeExpression.cs
- BaseCAMarshaler.cs
- IPEndPointCollection.cs
- FloatMinMaxAggregationOperator.cs
- SoapElementAttribute.cs
- documentsequencetextcontainer.cs
- WindowsProgressbar.cs
- ComplexLine.cs
- UnsafeNativeMethodsTablet.cs
- ResourceContainerWrapper.cs
- RawAppCommandInputReport.cs
- CodeCompileUnit.cs
- ColumnCollectionEditor.cs
- StorageTypeMapping.cs
- DataGridItemCollection.cs
- XmlReaderDelegator.cs
- EntityParameterCollection.cs
- DBCommand.cs
- ISSmlParser.cs
- ToolStripPanelRow.cs
- _ListenerResponseStream.cs
- AssociationTypeEmitter.cs
- UInt16.cs
- EventLogPermissionHolder.cs
- IndicFontClient.cs
- NamespaceDecl.cs
- DbParameterHelper.cs
- XamlFigureLengthSerializer.cs
- _HeaderInfoTable.cs
- SvcMapFile.cs
- CollectionsUtil.cs
- SmtpReplyReaderFactory.cs
- Merger.cs
- HttpCapabilitiesEvaluator.cs
- METAHEADER.cs
- RealizationDrawingContextWalker.cs
- ClientConfigurationHost.cs
- PathParser.cs
- DeferredSelectedIndexReference.cs
- _ShellExpression.cs
- ObjectConverter.cs
- MonitorWrapper.cs
- LayoutEditorPart.cs
- ValidatorCompatibilityHelper.cs
- ContentPathSegment.cs
- PenThreadPool.cs
- SoapClientMessage.cs
- ToolStripSeparator.cs
- CommentAction.cs
- BaseResourcesBuildProvider.cs
- BinarySecretKeyIdentifierClause.cs
- CompiledRegexRunnerFactory.cs
- ToolStripSplitButton.cs
- PrimitiveList.cs
- GeneratedCodeAttribute.cs
- ConfigXmlElement.cs
- HttpTransportSecurity.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CopyNamespacesAction.cs
- PeerNameResolver.cs
- LoadMessageLogger.cs
- ComplexType.cs
- LambdaCompiler.Statements.cs
- GroupLabel.cs
- ClassHandlersStore.cs
- MetadataItem.cs
- SoapIncludeAttribute.cs
- BooleanKeyFrameCollection.cs
- IDQuery.cs
- InvalidContentTypeException.cs
- CalendarTable.cs
- ScriptingWebServicesSectionGroup.cs
- UnauthorizedAccessException.cs
- ToolboxCategory.cs
- NumberFormatter.cs
- WebPartUtil.cs
- RequestQueryProcessor.cs
- SqlGatherConsumedAliases.cs
- AttachmentCollection.cs
- TextBox.cs
- TableItemStyle.cs
- ComboBoxAutomationPeer.cs
- TemplatedAdorner.cs
- NamespaceQuery.cs
- ImageSource.cs
- XmlException.cs