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
- SimpleApplicationHost.cs
- MenuItemBinding.cs
- SurrogateSelector.cs
- DataGridViewCheckBoxColumn.cs
- SpecularMaterial.cs
- Maps.cs
- CodeRemoveEventStatement.cs
- WebPartVerbsEventArgs.cs
- AnimationException.cs
- ConnectionInterfaceCollection.cs
- SqlUtil.cs
- ConstraintCollection.cs
- DataComponentGenerator.cs
- IisNotInstalledException.cs
- CellParagraph.cs
- WebSysDisplayNameAttribute.cs
- OptimisticConcurrencyException.cs
- SystemIPInterfaceProperties.cs
- UTF8Encoding.cs
- ZipIOCentralDirectoryBlock.cs
- RunClient.cs
- CodeConditionStatement.cs
- RightsManagementPermission.cs
- XmlUnspecifiedAttribute.cs
- UnaryNode.cs
- SplashScreen.cs
- KeyFrames.cs
- CultureTableRecord.cs
- MethodBuilder.cs
- JpegBitmapEncoder.cs
- SafeArrayRankMismatchException.cs
- SegmentInfo.cs
- OptimizedTemplateContent.cs
- InfiniteIntConverter.cs
- ManipulationStartingEventArgs.cs
- XmlAnyAttributeAttribute.cs
- ListItemConverter.cs
- Rotation3D.cs
- PropertyDescriptorComparer.cs
- ExtractedStateEntry.cs
- FormsAuthenticationEventArgs.cs
- InternalsVisibleToAttribute.cs
- ResourceExpression.cs
- EmbeddedObject.cs
- TemplatePropertyEntry.cs
- TableFieldsEditor.cs
- WmpBitmapEncoder.cs
- ScopedKnownTypes.cs
- ButtonBase.cs
- Point4D.cs
- WeakReferenceList.cs
- EditorPartCollection.cs
- DrawingAttributeSerializer.cs
- LocalFileSettingsProvider.cs
- CompiledELinqQueryState.cs
- ConnectionManagementSection.cs
- OledbConnectionStringbuilder.cs
- PolygonHotSpot.cs
- CapacityStreamGeometryContext.cs
- ReferencedCollectionType.cs
- KerberosSecurityTokenAuthenticator.cs
- DependencyPropertyConverter.cs
- EpmCustomContentWriterNodeData.cs
- Process.cs
- GenericTransactionFlowAttribute.cs
- NameValueSectionHandler.cs
- TcpTransportSecurity.cs
- ClientConfigPaths.cs
- HttpApplication.cs
- StringKeyFrameCollection.cs
- MimeTextImporter.cs
- DateBoldEvent.cs
- SignalGate.cs
- WindowsToolbar.cs
- ConfigurationPropertyAttribute.cs
- SoapSchemaImporter.cs
- DictionarySectionHandler.cs
- IPPacketInformation.cs
- StringConverter.cs
- PersonalizationStateInfoCollection.cs
- RuntimeConfig.cs
- KeyPressEvent.cs
- ByteStreamGeometryContext.cs
- LinqDataSourceHelper.cs
- WebPartEditorCancelVerb.cs
- SqlDataSourceWizardForm.cs
- PagePropertiesChangingEventArgs.cs
- ColumnMapTranslator.cs
- RegistrySecurity.cs
- DBCommandBuilder.cs
- PathSegmentCollection.cs
- EntityDataSourceEntityTypeFilterItem.cs
- XmlSchemaNotation.cs
- SafeCryptHandles.cs
- BidOverLoads.cs
- PostBackTrigger.cs
- Grant.cs
- Compiler.cs
- TableItemStyle.cs
- EndpointAddressMessageFilter.cs