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
- CollectionDataContractAttribute.cs
- DataStreamFromComStream.cs
- BamlLocalizer.cs
- CompoundFileIOPermission.cs
- OdbcEnvironment.cs
- XmlJsonReader.cs
- HttpRequestCacheValidator.cs
- Point.cs
- DataColumnMapping.cs
- ObfuscateAssemblyAttribute.cs
- ConfigXmlWhitespace.cs
- CommonObjectSecurity.cs
- ColumnHeader.cs
- SecurityElement.cs
- ParameterBuilder.cs
- Vector.cs
- MetadataArtifactLoader.cs
- CloudCollection.cs
- ObjectListItem.cs
- XamlBuildTaskServices.cs
- TraceLevelStore.cs
- WriterOutput.cs
- MD5HashHelper.cs
- CompilerInfo.cs
- ResourceType.cs
- TableTextElementCollectionInternal.cs
- ToolStripLocationCancelEventArgs.cs
- WithStatement.cs
- ScrollEventArgs.cs
- QilDataSource.cs
- WeakEventTable.cs
- FixedPageAutomationPeer.cs
- HelpKeywordAttribute.cs
- _SslState.cs
- DesignerDataParameter.cs
- EventlogProvider.cs
- AvTrace.cs
- recordstatefactory.cs
- InfoCardBaseException.cs
- ForeignKeyConstraint.cs
- ProcessHostServerConfig.cs
- XamlWriter.cs
- HwndSourceKeyboardInputSite.cs
- GeometryDrawing.cs
- DbException.cs
- DataGridTextBoxColumn.cs
- EntityCommandExecutionException.cs
- RawStylusInput.cs
- CodeNamespaceCollection.cs
- BasicCellRelation.cs
- PageRanges.cs
- __ConsoleStream.cs
- NodeLabelEditEvent.cs
- CustomLineCap.cs
- RoleServiceManager.cs
- SizeFConverter.cs
- basenumberconverter.cs
- TextViewSelectionProcessor.cs
- wgx_sdk_version.cs
- ClassData.cs
- SuppressMergeCheckAttribute.cs
- BreakRecordTable.cs
- NetworkStream.cs
- EpmCustomContentDeSerializer.cs
- IsolatedStorageSecurityState.cs
- ParserStreamGeometryContext.cs
- ControlIdConverter.cs
- XmlAttributeCache.cs
- jithelpers.cs
- DecoderFallbackWithFailureFlag.cs
- XmlHelper.cs
- InstancePersistenceException.cs
- AsyncStreamReader.cs
- PageParser.cs
- MimeParameter.cs
- CounterCreationData.cs
- EFTableProvider.cs
- StreamReader.cs
- InstanceData.cs
- SmtpAuthenticationManager.cs
- QilPatternVisitor.cs
- EllipseGeometry.cs
- TextModifier.cs
- LinqExpressionNormalizer.cs
- StyleModeStack.cs
- ExpressionLexer.cs
- RotateTransform.cs
- CodeDefaultValueExpression.cs
- UpDownBaseDesigner.cs
- FrugalMap.cs
- Label.cs
- DesignerDataTableBase.cs
- Convert.cs
- TableDesigner.cs
- ContractInferenceHelper.cs
- XamlFigureLengthSerializer.cs
- SqlFunctionAttribute.cs
- ContentPresenter.cs
- PathTooLongException.cs
- MaskedTextBox.cs