Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / xws_reg / System / ServiceModel / Install / QueryServiceConfigHandle.cs / 1 / QueryServiceConfigHandle.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; internal class QueryServiceConfigHandle : SafeHandleMinusOneIsInvalid { internal QueryServiceConfigHandle() : this(IntPtr.Zero) { } internal QueryServiceConfigHandle(int size) : this(Marshal.AllocHGlobal(size)) { } internal QueryServiceConfigHandle(IntPtr queryServiceConfigPtr) : base(true) { this.handle = queryServiceConfigPtr; } internal QUERY_SERVICE_CONFIG ServiceConfig { get { QUERY_SERVICE_CONFIG retVal = new QUERY_SERVICE_CONFIG(); if (IntPtr.Zero != this.handle) { retVal = (QUERY_SERVICE_CONFIG) Marshal.PtrToStructure(this.handle, typeof(QUERY_SERVICE_CONFIG)); } return retVal; } } protected override bool ReleaseHandle() { if (!this.IsInvalid && !this.IsClosed && IntPtr.Zero != this.handle) { Marshal.FreeHGlobal(this.handle); this.handle = IntPtr.Zero; } return true; } } } // 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
- MimeReflector.cs
- FileRecordSequence.cs
- UniformGrid.cs
- ViewManagerAttribute.cs
- ChannelListenerBase.cs
- Utility.cs
- Viewport3DAutomationPeer.cs
- DefaultProfileManager.cs
- CompositeDuplexBindingElement.cs
- OutputCacheSection.cs
- OrderPreservingSpoolingTask.cs
- SqlBooleanMismatchVisitor.cs
- ControlDesignerState.cs
- CriticalExceptions.cs
- ResolvedKeyFrameEntry.cs
- SettingsPropertyNotFoundException.cs
- CompilerTypeWithParams.cs
- dataobject.cs
- GenerateHelper.cs
- QueryConverter.cs
- ObjectStateEntryDbDataRecord.cs
- Property.cs
- QilNode.cs
- DatagridviewDisplayedBandsData.cs
- FormClosedEvent.cs
- ParameterModifier.cs
- LayoutInformation.cs
- RawStylusActions.cs
- SafeEventLogWriteHandle.cs
- UrlPath.cs
- CounterSample.cs
- ConnectionPoolManager.cs
- ListBoxChrome.cs
- VisualCollection.cs
- Stack.cs
- SnapLine.cs
- SuppressMergeCheckAttribute.cs
- AutoResetEvent.cs
- RegisteredDisposeScript.cs
- SqlFileStream.cs
- ResourceDisplayNameAttribute.cs
- SettingsAttributeDictionary.cs
- ZipArchive.cs
- DbDataAdapter.cs
- ColumnReorderedEventArgs.cs
- IsolatedStorageFile.cs
- SqlBulkCopyColumnMapping.cs
- WebHttpBinding.cs
- SingleKeyFrameCollection.cs
- DesignerActionListCollection.cs
- GotoExpression.cs
- embossbitmapeffect.cs
- TerminatorSinks.cs
- ColumnWidthChangedEvent.cs
- HttpVersion.cs
- XmlTextReaderImplHelpers.cs
- DispatchChannelSink.cs
- SwitchLevelAttribute.cs
- ListControlDesigner.cs
- GridViewPageEventArgs.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XPathParser.cs
- IndexedString.cs
- GeneralTransform.cs
- DirectionalLight.cs
- DeviceContext.cs
- SqlStream.cs
- CqlErrorHelper.cs
- SQLUtility.cs
- SortedList.cs
- ForceCopyBuildProvider.cs
- ProxyHwnd.cs
- SocketAddress.cs
- BitmapSizeOptions.cs
- PropertyGridEditorPart.cs
- TemplateXamlParser.cs
- LockedHandleGlyph.cs
- ErrorLog.cs
- SimpleTextLine.cs
- HierarchicalDataSourceControl.cs
- XmlComment.cs
- ProgressBarAutomationPeer.cs
- MediaEntryAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- SecurityTokenAttachmentMode.cs
- CommonProperties.cs
- ColorAnimationBase.cs
- AuthenticationModuleElement.cs
- WpfXamlType.cs
- LicenseProviderAttribute.cs
- MediaContextNotificationWindow.cs
- StyleConverter.cs
- WebPartConnection.cs
- SecurityContext.cs
- UserControl.cs
- CodeCommentStatementCollection.cs
- TrustManagerPromptUI.cs
- MachineKeyConverter.cs
- WorkflowMessageEventHandler.cs
- ObjectContextServiceProvider.cs