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
- Number.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SplitContainer.cs
- EmptyControlCollection.cs
- DataGridItemCollection.cs
- HttpWebRequestElement.cs
- DescriptionAttribute.cs
- WinFormsSpinner.cs
- GPPOINTF.cs
- SystemColors.cs
- CheckableControlBaseAdapter.cs
- Geometry3D.cs
- GcHandle.cs
- RuleProcessor.cs
- AutomationPatternInfo.cs
- LayoutSettings.cs
- DockPanel.cs
- XmlNamespaceMappingCollection.cs
- XmlSerializerSection.cs
- NamespaceList.cs
- RijndaelCryptoServiceProvider.cs
- ProjectionPruner.cs
- DataSet.cs
- ToolStripButton.cs
- UmAlQuraCalendar.cs
- AnnotationMap.cs
- AuthenticationManager.cs
- HashCryptoHandle.cs
- ShapeTypeface.cs
- Thumb.cs
- HtmlTableRowCollection.cs
- ProgressPage.cs
- UnescapedXmlDiagnosticData.cs
- ThreadLocal.cs
- DBParameter.cs
- ContainerFilterService.cs
- ArrayTypeMismatchException.cs
- PropertyPushdownHelper.cs
- SamlSerializer.cs
- xsdvalidator.cs
- ListViewGroup.cs
- DispatcherTimer.cs
- ToolboxComponentsCreatingEventArgs.cs
- EntityDataSourceDataSelection.cs
- ReflectionPermission.cs
- AdornerHitTestResult.cs
- CachedCompositeFamily.cs
- EventProviderTraceListener.cs
- IRCollection.cs
- CallSiteHelpers.cs
- DbInsertCommandTree.cs
- XmlSchemaObjectTable.cs
- DeviceContext.cs
- TextEndOfSegment.cs
- SequenceFullException.cs
- RectangleHotSpot.cs
- BinaryCommonClasses.cs
- WebPartEditVerb.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Vector3DCollectionConverter.cs
- Condition.cs
- WasEndpointConfigContainer.cs
- EditingScopeUndoUnit.cs
- RuntimeTrackingProfile.cs
- ClearTypeHintValidation.cs
- CloudCollection.cs
- ContentPresenter.cs
- WebPartAuthorizationEventArgs.cs
- CurrentTimeZone.cs
- RectKeyFrameCollection.cs
- FontSizeConverter.cs
- Vertex.cs
- ReadOnlyMetadataCollection.cs
- SessionPageStateSection.cs
- securitycriticaldata.cs
- Style.cs
- PageTheme.cs
- MeshGeometry3D.cs
- WebControlToolBoxItem.cs
- MemoryStream.cs
- WsdlInspector.cs
- PartBasedPackageProperties.cs
- WebPartDeleteVerb.cs
- BitmapCodecInfo.cs
- TypeBrowser.xaml.cs
- GenericWebPart.cs
- EntityKeyElement.cs
- MemoryRecordBuffer.cs
- WorkerRequest.cs
- FileDataSourceCache.cs
- ToolStripRenderer.cs
- Dump.cs
- SelectionEditingBehavior.cs
- ToolStripSeparatorRenderEventArgs.cs
- TemplateManager.cs
- DebugView.cs
- CodeSnippetExpression.cs
- NavigatorOutput.cs
- WindowsGraphicsWrapper.cs
- JsonReader.cs