Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Tools / WSATConfig / Configuration / SafeCertificateStore.cs / 1305376 / SafeCertificateStore.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.Tools.ServiceModel.WsatConfig { using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32.SafeHandles; sealed class SafeCertificateStore : SafeHandleZeroOrMinusOneIsInvalid { [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)] SafeCertificateStore() : base(false) { return; } public override bool IsInvalid { get { return handle == IntPtr.Zero; } } protected override bool ReleaseHandle() { #pragma warning suppress 56523 return SafeNativeMethods.CertCloseStore(handle, 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Model3DGroup.cs
- KernelTypeValidation.cs
- SimpleType.cs
- BitmapEffectInputData.cs
- FormViewPageEventArgs.cs
- SessionStateUtil.cs
- UnitySerializationHolder.cs
- securestring.cs
- ConfigurationLockCollection.cs
- ScriptControlDescriptor.cs
- GreenMethods.cs
- EditorPartChrome.cs
- SettingsAttributeDictionary.cs
- fixedPageContentExtractor.cs
- SchemaElementDecl.cs
- ToolStripPanelCell.cs
- SpeechSynthesizer.cs
- SortExpressionBuilder.cs
- ContourSegment.cs
- InputBinder.cs
- SchemaMerger.cs
- WebPartConnection.cs
- OciEnlistContext.cs
- SqlDataSourceCache.cs
- XmlHierarchyData.cs
- TextEditorContextMenu.cs
- Activation.cs
- WindowsStatic.cs
- SqlNodeTypeOperators.cs
- ComponentRenameEvent.cs
- VirtualizingStackPanel.cs
- FirstMatchCodeGroup.cs
- StringStorage.cs
- FixedDocumentSequencePaginator.cs
- ConfigXmlComment.cs
- DrawingImage.cs
- FixedTextBuilder.cs
- newinstructionaction.cs
- TemplateField.cs
- XPathNodeInfoAtom.cs
- WeakHashtable.cs
- HwndProxyElementProvider.cs
- BindToObject.cs
- DataView.cs
- InternalConfigSettingsFactory.cs
- SmtpAuthenticationManager.cs
- CacheOutputQuery.cs
- KeyConverter.cs
- Geometry.cs
- TextBox.cs
- VirtualizingStackPanel.cs
- PropertyPath.cs
- SmtpDigestAuthenticationModule.cs
- SqlHelper.cs
- ImageKeyConverter.cs
- PersonalizableTypeEntry.cs
- Material.cs
- ToolZone.cs
- GifBitmapDecoder.cs
- ControllableStoryboardAction.cs
- DataGridViewImageColumn.cs
- XmlArrayAttribute.cs
- FormParameter.cs
- SystemResources.cs
- Matrix.cs
- ContextActivityUtils.cs
- ZoneButton.cs
- BridgeDataReader.cs
- SocketInformation.cs
- DataComponentNameHandler.cs
- ArgumentException.cs
- ComponentRenameEvent.cs
- DataGridViewComboBoxColumn.cs
- SystemColorTracker.cs
- ImageDrawing.cs
- SignatureToken.cs
- WindowExtensionMethods.cs
- TemplateControlBuildProvider.cs
- DoubleConverter.cs
- DataServiceStreamResponse.cs
- Propagator.Evaluator.cs
- OpCopier.cs
- TypeResolver.cs
- DecryptedHeader.cs
- SspiNegotiationTokenProvider.cs
- Knowncolors.cs
- __Error.cs
- DataView.cs
- GlyphRun.cs
- ProtocolsConfiguration.cs
- HyperLinkStyle.cs
- ConnectionConsumerAttribute.cs
- SchemaNotation.cs
- ChangeConflicts.cs
- GenericAuthenticationEventArgs.cs
- ItemDragEvent.cs
- WasEndpointConfigContainer.cs
- AsymmetricKeyExchangeFormatter.cs
- ListViewItem.cs
- FontResourceCache.cs