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
- DataGridViewElement.cs
- Literal.cs
- RandomNumberGenerator.cs
- WebFaultClientMessageInspector.cs
- NamedObject.cs
- TextBox.cs
- ReturnEventArgs.cs
- CurrentChangingEventManager.cs
- UserPreferenceChangingEventArgs.cs
- SyndicationSerializer.cs
- EtwTrace.cs
- QilCloneVisitor.cs
- SimpleModelProvider.cs
- RepeatBehavior.cs
- SqlClientPermission.cs
- TypeDescriptionProviderAttribute.cs
- KeyEvent.cs
- TextEditorTables.cs
- VirtualizingPanel.cs
- ClientConfigPaths.cs
- SocketConnection.cs
- FormViewDeletedEventArgs.cs
- ItemCheckedEvent.cs
- ZipIOExtraFieldPaddingElement.cs
- AnnotationHelper.cs
- UserControlCodeDomTreeGenerator.cs
- EntityCommand.cs
- TextTreeNode.cs
- WebScriptEnablingBehavior.cs
- Section.cs
- CompiledXpathExpr.cs
- SubtreeProcessor.cs
- SqlCacheDependencyDatabaseCollection.cs
- EventDriven.cs
- Zone.cs
- CodeCastExpression.cs
- WindowsFont.cs
- DecoderNLS.cs
- BufferModeSettings.cs
- ComPlusServiceLoader.cs
- HwndTarget.cs
- WebPartHelpVerb.cs
- AdapterUtil.cs
- EventMetadata.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StatusBarItem.cs
- SystemIcmpV4Statistics.cs
- FormatVersion.cs
- XmlSchemaSimpleTypeList.cs
- SqlRowUpdatedEvent.cs
- SubclassTypeValidatorAttribute.cs
- FileUpload.cs
- DataTrigger.cs
- FillBehavior.cs
- typedescriptorpermissionattribute.cs
- TreeViewEvent.cs
- RawStylusInputReport.cs
- EventLogPermissionEntry.cs
- Int32Storage.cs
- VisualState.cs
- AsyncResult.cs
- ContentType.cs
- Crc32.cs
- sortedlist.cs
- RadialGradientBrush.cs
- ContentWrapperAttribute.cs
- DragDeltaEventArgs.cs
- CqlGenerator.cs
- ValidationSummary.cs
- SortDescriptionCollection.cs
- AsyncDataRequest.cs
- SecurityTokenProviderContainer.cs
- AttributeCollection.cs
- IndependentAnimationStorage.cs
- CompositeActivityCodeGenerator.cs
- ServiceReference.cs
- ProjectionPlan.cs
- TextDecoration.cs
- CompensateDesigner.cs
- DeferredRunTextReference.cs
- ButtonRenderer.cs
- TextShapeableCharacters.cs
- PersianCalendar.cs
- BaseDataBoundControlDesigner.cs
- MembershipSection.cs
- MultipartContentParser.cs
- BasicCellRelation.cs
- ColorTransformHelper.cs
- SqlPersonalizationProvider.cs
- GetMemberBinder.cs
- TiffBitmapEncoder.cs
- RegistryKey.cs
- CapabilitiesAssignment.cs
- UrlMappingCollection.cs
- BinaryNode.cs
- XmlDictionaryWriter.cs
- RootCodeDomSerializer.cs
- KeyMatchBuilder.cs
- SizeAnimation.cs
- UncommonField.cs