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
- LocalTransaction.cs
- SqlXml.cs
- TableRow.cs
- SqlDataSource.cs
- ControlIdConverter.cs
- FileDetails.cs
- OLEDB_Util.cs
- DocumentCollection.cs
- CodeMemberField.cs
- ScriptIgnoreAttribute.cs
- SqlTopReducer.cs
- OleDbInfoMessageEvent.cs
- DynamicQueryableWrapper.cs
- CapabilitiesSection.cs
- StaticFileHandler.cs
- AttributeEmitter.cs
- DateTimeOffsetAdapter.cs
- StateChangeEvent.cs
- ExternalException.cs
- MsmqOutputMessage.cs
- Action.cs
- FixedPageStructure.cs
- Utility.cs
- RenderTargetBitmap.cs
- HttpCookiesSection.cs
- CultureInfoConverter.cs
- Light.cs
- CqlLexerHelpers.cs
- BounceEase.cs
- WebConvert.cs
- InputReport.cs
- COMException.cs
- SessionStateUtil.cs
- Timeline.cs
- MultiSelectRootGridEntry.cs
- Compiler.cs
- OleDbReferenceCollection.cs
- MLangCodePageEncoding.cs
- DbConnectionPoolCounters.cs
- MappingItemCollection.cs
- EntityDataSourceChangedEventArgs.cs
- PropertiesTab.cs
- DynamicDataExtensions.cs
- WebSysDescriptionAttribute.cs
- BitmapEffectCollection.cs
- WebContext.cs
- XmlCDATASection.cs
- ComAdminInterfaces.cs
- FixedSOMPageConstructor.cs
- SafeProcessHandle.cs
- EntitySetBaseCollection.cs
- ConditionalBranch.cs
- JulianCalendar.cs
- DoubleAverageAggregationOperator.cs
- FormViewDeleteEventArgs.cs
- ExtensionSimplifierMarkupObject.cs
- XPathException.cs
- ProfileSettingsCollection.cs
- EditingCoordinator.cs
- PageAsyncTaskManager.cs
- assertwrapper.cs
- XmlAttributeProperties.cs
- SearchForVirtualItemEventArgs.cs
- VScrollProperties.cs
- RadioButtonStandardAdapter.cs
- XpsFilter.cs
- Binding.cs
- IsolatedStorageException.cs
- MethodAccessException.cs
- ToolStripContainer.cs
- MimeTypeMapper.cs
- SqlDataSourceSelectingEventArgs.cs
- UrlPath.cs
- ArrayTypeMismatchException.cs
- XmlDocumentType.cs
- SettingsPropertyValue.cs
- Win32Native.cs
- QueryOptionExpression.cs
- PkcsMisc.cs
- Container.cs
- LookupNode.cs
- Convert.cs
- AuthenticationException.cs
- JsonUriDataContract.cs
- EnumUnknown.cs
- DataGridTablesFactory.cs
- AspCompat.cs
- QuadraticEase.cs
- CatalogZone.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DelimitedListTraceListener.cs
- ObjectItemCachedAssemblyLoader.cs
- CorePropertiesFilter.cs
- InheritanceContextHelper.cs
- TypeValidationEventArgs.cs
- WindowsBrush.cs
- DataRowCollection.cs
- ValidationError.cs
- GridViewCommandEventArgs.cs
- NumberFormatInfo.cs