Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Tools / WSATConfig / Configuration / RegistryConfigurationProvider.cs / 1 / RegistryConfigurationProvider.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.Tools.ServiceModel.WsatConfig { using System; using System.IO; using System.Management; using System.Runtime.InteropServices; using Microsoft.Win32; class RegistryConfigurationProvider : ConfigurationProvider { StdRegProviderWrapper stdRegProvider = null; internal RegistryConfigurationProvider(RegistryHive remoteHive, string subKey, string machineName) { stdRegProvider = new StdRegProviderWrapper(remoteHive, subKey, machineName); } RegistryConfigurationProvider(StdRegProviderWrapper stdRegProvider) { this.stdRegProvider = stdRegProvider; } internal override ConfigurationProvider OpenKey(string subKey) { StdRegProviderWrapper subRegWrapper = stdRegProvider.OpenKey(subKey); return new RegistryConfigurationProvider(subRegWrapper); } internal override uint ReadUInt32(string name, uint defaultValue) { return stdRegProvider.ReadUInt32(name, defaultValue); } internal override string ReadString(string name, string defaultValue) { return stdRegProvider.ReadString(name, defaultValue); } internal override string[] ReadMultiString(string name, string[] defaultValue) { return stdRegProvider.ReadMultiString(name, defaultValue); } internal override void WriteUInt32(string name, uint value) { stdRegProvider.WriteUInt32(name, value); } internal override void WriteString(string name, string value) { stdRegProvider.WriteString(name, value); } internal override void WriteMultiString(string name, string[] value) { stdRegProvider.WriteMultiString(name, value); } internal override void AdjustRegKeyPermission() { stdRegProvider.AdjustRegKeyPermission(); } public override void Dispose() { if(stdRegProvider != null) { stdRegProvider.Dispose(); stdRegProvider = null; } } } } // 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
- EventMappingSettingsCollection.cs
- OutputScopeManager.cs
- QilTernary.cs
- LinkedResource.cs
- RSAProtectedConfigurationProvider.cs
- CancelEventArgs.cs
- XmlSerializer.cs
- XsdBuildProvider.cs
- UnionExpr.cs
- RSAOAEPKeyExchangeFormatter.cs
- RefreshPropertiesAttribute.cs
- StateMachine.cs
- DataGridViewToolTip.cs
- DbParameterCollectionHelper.cs
- IgnoreFileBuildProvider.cs
- UInt32Storage.cs
- SiteOfOriginPart.cs
- AssemblyResourceLoader.cs
- ClipboardData.cs
- hwndwrapper.cs
- AffineTransform3D.cs
- EventLogger.cs
- Boolean.cs
- EventArgs.cs
- TypeConverterHelper.cs
- BinaryUtilClasses.cs
- SchemaImporter.cs
- TableLayoutRowStyleCollection.cs
- FormatConvertedBitmap.cs
- Application.cs
- SpeechRecognizer.cs
- ReferenceEqualityComparer.cs
- ManagedWndProcTracker.cs
- TabPanel.cs
- Codec.cs
- xmlformatgeneratorstatics.cs
- ToolStripPanelSelectionGlyph.cs
- ThousandthOfEmRealPoints.cs
- PropertyReferenceSerializer.cs
- ArrangedElementCollection.cs
- MasterPageBuildProvider.cs
- AutomationPropertyInfo.cs
- Psha1DerivedKeyGenerator.cs
- CustomAssemblyResolver.cs
- TableLayout.cs
- SignerInfo.cs
- SoapCodeExporter.cs
- TypeCollectionPropertyEditor.cs
- DbConnectionInternal.cs
- BindStream.cs
- HttpHeaderCollection.cs
- TreeNodeBindingCollection.cs
- CodeDOMProvider.cs
- Int64AnimationBase.cs
- SafeSecurityHelper.cs
- SqlCaseSimplifier.cs
- TableLayoutPanel.cs
- QueryOperatorEnumerator.cs
- HttpApplicationFactory.cs
- Rect.cs
- XsltContext.cs
- CellPartitioner.cs
- AndCondition.cs
- TimeSpan.cs
- RuntimeConfigLKG.cs
- Visual3DCollection.cs
- SqlMethods.cs
- Message.cs
- SoapIncludeAttribute.cs
- XmlBinaryReader.cs
- TemplatingOptionsDialog.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SQLBinary.cs
- __TransparentProxy.cs
- FontFamily.cs
- BatchServiceHost.cs
- Rotation3D.cs
- ArgIterator.cs
- ToolStripDropDownClosingEventArgs.cs
- ObjectStateEntry.cs
- GroupByQueryOperator.cs
- ExportOptions.cs
- DispatchProxy.cs
- FacetValueContainer.cs
- PersistenceTypeAttribute.cs
- TaiwanLunisolarCalendar.cs
- WindowsListViewGroupHelper.cs
- DataObjectMethodAttribute.cs
- TCEAdapterGenerator.cs
- XmlSerializableReader.cs
- WindowsBrush.cs
- ObjectDataSourceView.cs
- CreateWorkflowOwnerCommand.cs
- IteratorDescriptor.cs
- DayRenderEvent.cs
- UrlPath.cs
- ResolveRequestResponseAsyncResult.cs
- CellCreator.cs
- StringHelper.cs
- PeerNameResolver.cs