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
- RequestDescription.cs
- RankException.cs
- UITypeEditor.cs
- DLinqTableProvider.cs
- PermissionSetTriple.cs
- AddingNewEventArgs.cs
- SystemInfo.cs
- PenThreadPool.cs
- CacheModeConverter.cs
- WebPartCatalogAddVerb.cs
- XsdSchemaFileEditor.cs
- SerializationEventsCache.cs
- sqlpipe.cs
- NameValuePermission.cs
- ChannelSettingsElement.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- InvokeWebServiceDesigner.cs
- ColorEditor.cs
- CodeAttributeArgument.cs
- WebConfigurationHostFileChange.cs
- Buffer.cs
- XmlQualifiedName.cs
- CaseExpr.cs
- ItemType.cs
- NGCUIElementCollectionSerializerAsync.cs
- WindowsRegion.cs
- ValidationVisibilityAttribute.cs
- ErrorFormatter.cs
- ConnectionConsumerAttribute.cs
- WizardStepCollectionEditor.cs
- SystemEvents.cs
- UntypedNullExpression.cs
- ExclusiveCanonicalizationTransform.cs
- HttpHandlerActionCollection.cs
- SQLDecimalStorage.cs
- TextInfo.cs
- StrokeCollectionDefaultValueFactory.cs
- TabletCollection.cs
- TextMetrics.cs
- SaveFileDialog.cs
- FixedTextContainer.cs
- XmlAnyElementAttribute.cs
- TemplateKeyConverter.cs
- PlaceHolder.cs
- DbConnectionPoolIdentity.cs
- FocusWithinProperty.cs
- processwaithandle.cs
- XmlSchemaSimpleContentRestriction.cs
- Int32Collection.cs
- EndOfStreamException.cs
- WebPartConnectionsCloseVerb.cs
- InternalException.cs
- SecureStringHasher.cs
- HtmlWindow.cs
- Label.cs
- ProfileSection.cs
- ComponentGlyph.cs
- FrameworkRichTextComposition.cs
- PeerCollaborationPermission.cs
- WmlValidationSummaryAdapter.cs
- SpotLight.cs
- BindingElement.cs
- HtmlInputImage.cs
- DirectoryInfo.cs
- ListViewContainer.cs
- DataContext.cs
- UIElement3DAutomationPeer.cs
- DoWorkEventArgs.cs
- TextDecorationCollectionConverter.cs
- ObjectDataSource.cs
- FormViewInsertEventArgs.cs
- SystemColorTracker.cs
- DataServiceRequestException.cs
- TabControlEvent.cs
- TextChangedEventArgs.cs
- XmlAttributeAttribute.cs
- PrivilegeNotHeldException.cs
- CodeExpressionStatement.cs
- AppliesToBehaviorDecisionTable.cs
- HandledMouseEvent.cs
- Wildcard.cs
- GrammarBuilderRuleRef.cs
- HttpHandlerActionCollection.cs
- Selector.cs
- ViewService.cs
- CommandDesigner.cs
- PostBackOptions.cs
- Query.cs
- InheritanceRules.cs
- MimeTypeAttribute.cs
- ToolStripDesignerAvailabilityAttribute.cs
- CodeExporter.cs
- MsmqChannelFactoryBase.cs
- SystemTcpStatistics.cs
- RemotingServices.cs
- EmissiveMaterial.cs
- EncryptedXml.cs
- TemplatingOptionsDialog.cs
- FlowDocumentPage.cs
- FrameDimension.cs