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
- X509ChainElement.cs
- WinFormsSpinner.cs
- SettingsPropertyNotFoundException.cs
- SuppressIldasmAttribute.cs
- EncryptedReference.cs
- HostProtectionException.cs
- ADMembershipUser.cs
- RelationshipEndMember.cs
- ExtentCqlBlock.cs
- BindingManagerDataErrorEventArgs.cs
- path.cs
- XamlVector3DCollectionSerializer.cs
- UnionCqlBlock.cs
- RadioButtonRenderer.cs
- RootProfilePropertySettingsCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- SamlConstants.cs
- TextElementAutomationPeer.cs
- HttpRequestCacheValidator.cs
- ConfigXmlWhitespace.cs
- RequestCacheManager.cs
- EntityDataReader.cs
- RelationshipFixer.cs
- DbConnectionFactory.cs
- HyperLinkDesigner.cs
- ClientApiGenerator.cs
- CollectionViewGroupRoot.cs
- SafePEFileHandle.cs
- CfgRule.cs
- _ListenerResponseStream.cs
- ToolStripSplitStackLayout.cs
- ImmutableCommunicationTimeouts.cs
- configsystem.cs
- ErrorWebPart.cs
- BitmapCacheBrush.cs
- OpCellTreeNode.cs
- DataReaderContainer.cs
- ServiceContractViewControl.Designer.cs
- NetworkInformationException.cs
- CreateUserWizardStep.cs
- DataChangedEventManager.cs
- EFAssociationProvider.cs
- AttributeTableBuilder.cs
- TrustManager.cs
- SecureUICommand.cs
- Hashtable.cs
- ImmutableObjectAttribute.cs
- PassportIdentity.cs
- EventPropertyMap.cs
- InlinedAggregationOperatorEnumerator.cs
- Resources.Designer.cs
- ProtectedConfigurationSection.cs
- RangeExpression.cs
- AutomationElementCollection.cs
- SQLBinary.cs
- DependencyPropertyKey.cs
- HMACSHA1.cs
- UserInitiatedRoutedEventPermission.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SecurityPolicySection.cs
- NamedObject.cs
- TextFormattingConverter.cs
- OleDbCommand.cs
- ResourceContainer.cs
- Rotation3D.cs
- TimelineCollection.cs
- LineBreak.cs
- BevelBitmapEffect.cs
- HtmlInputFile.cs
- UnsettableComboBox.cs
- SplineQuaternionKeyFrame.cs
- AllowedAudienceUriElementCollection.cs
- StopStoryboard.cs
- IItemProperties.cs
- Activity.cs
- ToolBarButtonDesigner.cs
- Directory.cs
- Serialization.cs
- COM2AboutBoxPropertyDescriptor.cs
- Latin1Encoding.cs
- ReadOnlyCollection.cs
- TextRange.cs
- DataDocumentXPathNavigator.cs
- DesignBindingConverter.cs
- NativeMethods.cs
- DocumentViewerHelper.cs
- SimpleType.cs
- CustomExpression.cs
- wgx_commands.cs
- HTMLTextWriter.cs
- Property.cs
- figurelength.cs
- RuleSetDialog.Designer.cs
- Matrix3D.cs
- WebServicesInteroperability.cs
- Route.cs
- AnnotationAuthorChangedEventArgs.cs
- Application.cs
- CorruptingExceptionCommon.cs
- ImportCatalogPart.cs