Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / WSATConfig / Configuration / SafeCertificateStore.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProcessModule.cs
- DataKeyCollection.cs
- ISSmlParser.cs
- TimeSpanFormat.cs
- EntityDataSourceView.cs
- MemoryFailPoint.cs
- GreaterThanOrEqual.cs
- AnnotationResource.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- DataViewSetting.cs
- CompilerResults.cs
- counter.cs
- Geometry.cs
- PeerNeighborManager.cs
- MergablePropertyAttribute.cs
- ArgumentOutOfRangeException.cs
- ValidationEventArgs.cs
- TraceContextRecord.cs
- DataBoundControlHelper.cs
- ResourceManager.cs
- WebPartMinimizeVerb.cs
- ResponseBodyWriter.cs
- StyleSheetDesigner.cs
- LogicalExpr.cs
- RichTextBoxConstants.cs
- ShortcutKeysEditor.cs
- ManagementDateTime.cs
- CreateUserErrorEventArgs.cs
- FileCodeGroup.cs
- DescendantBaseQuery.cs
- DataGridRowEventArgs.cs
- WeakHashtable.cs
- RevocationPoint.cs
- MoveSizeWinEventHandler.cs
- SafeCloseHandleCritical.cs
- BitmapEffectInput.cs
- AdvancedBindingPropertyDescriptor.cs
- IChannel.cs
- SegmentTree.cs
- OutOfMemoryException.cs
- WhiteSpaceTrimStringConverter.cs
- LoopExpression.cs
- InkCollectionBehavior.cs
- GlyphRun.cs
- MouseCaptureWithinProperty.cs
- StringUtil.cs
- PageTheme.cs
- AssociationSetMetadata.cs
- ForEachDesigner.xaml.cs
- InvalidOperationException.cs
- OpCellTreeNode.cs
- DbException.cs
- SimpleRecyclingCache.cs
- WebBrowserSiteBase.cs
- CssClassPropertyAttribute.cs
- NamespaceEmitter.cs
- ColorKeyFrameCollection.cs
- FilterableAttribute.cs
- BitStream.cs
- ThemeDictionaryExtension.cs
- ProxyManager.cs
- AttachedPropertyMethodSelector.cs
- BasicKeyConstraint.cs
- SecurityValidationBehavior.cs
- OracleConnectionString.cs
- ProvidersHelper.cs
- SecurityUtils.cs
- Action.cs
- GroupBoxDesigner.cs
- DiagnosticTrace.cs
- ScriptBehaviorDescriptor.cs
- XmlNamespaceManager.cs
- AddIn.cs
- ObjectMaterializedEventArgs.cs
- AppSettingsExpressionBuilder.cs
- TextEditorParagraphs.cs
- ComboBox.cs
- _ContextAwareResult.cs
- CqlLexer.cs
- NGCSerializerAsync.cs
- DbProviderFactory.cs
- XmlWrappingReader.cs
- DoubleAnimationClockResource.cs
- PersonalizationEntry.cs
- EpmCustomContentWriterNodeData.cs
- ImageUrlEditor.cs
- SQLDecimal.cs
- altserialization.cs
- WindowsStatic.cs
- TimeoutValidationAttribute.cs
- ClaimTypes.cs
- ToolStripDropDownButton.cs
- SymmetricAlgorithm.cs
- WebMessageEncodingBindingElement.cs
- RequestResizeEvent.cs
- SerialReceived.cs
- BuildProviderAppliesToAttribute.cs
- FileUtil.cs
- DelegatedStream.cs
- TextEditorCopyPaste.cs