Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / ExeConfigurationFileMap.cs / 1 / ExeConfigurationFileMap.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Specialized; using System.Security; using System.Security.Permissions; namespace System.Configuration { // // Holds the configuration file mapping for an Exe. // public sealed class ExeConfigurationFileMap : ConfigurationFileMap { string _exeConfigFilename; string _roamingUserConfigFilename; string _localUserConfigFilename; public ExeConfigurationFileMap() { _exeConfigFilename = String.Empty; _roamingUserConfigFilename = String.Empty; _localUserConfigFilename = String.Empty; } ExeConfigurationFileMap(string machineConfigFilename, string exeConfigFilename, string roamingUserConfigFilename, string localUserConfigFilename) : base(machineConfigFilename) { _exeConfigFilename = exeConfigFilename; _roamingUserConfigFilename = roamingUserConfigFilename; _localUserConfigFilename = localUserConfigFilename; } public override object Clone() { return new ExeConfigurationFileMap(MachineConfigFilename, _exeConfigFilename, _roamingUserConfigFilename, _localUserConfigFilename); } // // The name of the config file for the exe. // public string ExeConfigFilename { get { return _exeConfigFilename; } set { _exeConfigFilename = value; } } // // The name of the config file for the roaming user. // public string RoamingUserConfigFilename { get { return _roamingUserConfigFilename; } set { _roamingUserConfigFilename = value; } } // // The name of the config file for the local user. // public string LocalUserConfigFilename { get { return _localUserConfigFilename; } set { _localUserConfigFilename = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Specialized; using System.Security; using System.Security.Permissions; namespace System.Configuration { // // Holds the configuration file mapping for an Exe. // public sealed class ExeConfigurationFileMap : ConfigurationFileMap { string _exeConfigFilename; string _roamingUserConfigFilename; string _localUserConfigFilename; public ExeConfigurationFileMap() { _exeConfigFilename = String.Empty; _roamingUserConfigFilename = String.Empty; _localUserConfigFilename = String.Empty; } ExeConfigurationFileMap(string machineConfigFilename, string exeConfigFilename, string roamingUserConfigFilename, string localUserConfigFilename) : base(machineConfigFilename) { _exeConfigFilename = exeConfigFilename; _roamingUserConfigFilename = roamingUserConfigFilename; _localUserConfigFilename = localUserConfigFilename; } public override object Clone() { return new ExeConfigurationFileMap(MachineConfigFilename, _exeConfigFilename, _roamingUserConfigFilename, _localUserConfigFilename); } // // The name of the config file for the exe. // public string ExeConfigFilename { get { return _exeConfigFilename; } set { _exeConfigFilename = value; } } // // The name of the config file for the roaming user. // public string RoamingUserConfigFilename { get { return _roamingUserConfigFilename; } set { _roamingUserConfigFilename = value; } } // // The name of the config file for the local user. // public string LocalUserConfigFilename { get { return _localUserConfigFilename; } set { _localUserConfigFilename = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlDownloadManager.cs
- TypeListConverter.cs
- CapabilitiesRule.cs
- MatrixValueSerializer.cs
- Html32TextWriter.cs
- Size3DConverter.cs
- ItemsControlAutomationPeer.cs
- InternalMappingException.cs
- WindowInteractionStateTracker.cs
- XmlSchemaSequence.cs
- PieceNameHelper.cs
- DropDownList.cs
- PopupControlService.cs
- FunctionNode.cs
- VirtualPathUtility.cs
- Rotation3D.cs
- TreeSet.cs
- NonParentingControl.cs
- PeerValidationBehavior.cs
- AuthenticationManager.cs
- WebProxyScriptElement.cs
- AppLevelCompilationSectionCache.cs
- CompatibleIComparer.cs
- MulticastDelegate.cs
- TemplateControl.cs
- XmlnsDictionary.cs
- ToggleButtonAutomationPeer.cs
- EmptyControlCollection.cs
- HtmlInputText.cs
- TypedTableBase.cs
- GenericParameterDataContract.cs
- ResourcePool.cs
- DataGridViewLinkCell.cs
- SystemException.cs
- CodeCommentStatementCollection.cs
- Decoder.cs
- BooleanSwitch.cs
- RightsManagementPermission.cs
- MediaContextNotificationWindow.cs
- EntityDataSourceReferenceGroup.cs
- ForceCopyBuildProvider.cs
- LayeredChannelFactory.cs
- DifferencingCollection.cs
- coordinatorfactory.cs
- DataMember.cs
- MultipartContentParser.cs
- GroupDescription.cs
- SoapClientMessage.cs
- RestrictedTransactionalPackage.cs
- ByteArrayHelperWithString.cs
- CodeTypeOfExpression.cs
- SubpageParaClient.cs
- NameTable.cs
- ExtractedStateEntry.cs
- FixedSOMTableCell.cs
- FormViewModeEventArgs.cs
- PassportIdentity.cs
- TextTreeUndoUnit.cs
- DesignerVerbCollection.cs
- ServiceReference.cs
- RenderData.cs
- WebPartDisplayModeCancelEventArgs.cs
- CommonDialog.cs
- NumericExpr.cs
- InvalidProgramException.cs
- TextAction.cs
- RemoteWebConfigurationHost.cs
- ScriptResourceInfo.cs
- ExtensionDataObject.cs
- DataRecord.cs
- PenThread.cs
- DataGridView.cs
- StatusBar.cs
- WinEventTracker.cs
- XmlReaderSettings.cs
- SqlDataReaderSmi.cs
- XmlTextReaderImplHelpers.cs
- XPathSelectionIterator.cs
- TdsParser.cs
- SerialPinChanges.cs
- TypeConverterHelper.cs
- ScrollViewerAutomationPeer.cs
- ObjectHandle.cs
- ConnectionManagementElementCollection.cs
- TableChangeProcessor.cs
- DescendantQuery.cs
- __ConsoleStream.cs
- ViewPort3D.cs
- ImageSource.cs
- ValidationRuleCollection.cs
- ScrollChrome.cs
- DrawingAttributes.cs
- CodeCatchClause.cs
- ListViewSortEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- AmbientLight.cs
- MaxValueConverter.cs
- ManipulationVelocities.cs
- OdbcEnvironment.cs
- StringAnimationUsingKeyFrames.cs