Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ExeConfigurationFileMap.cs / 1305376 / 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; } public ExeConfigurationFileMap(string machineConfigFileName) : base(machineConfigFileName) { _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; } public ExeConfigurationFileMap(string machineConfigFileName) : base(machineConfigFileName) { _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
- NavigationPropertyEmitter.cs
- ThaiBuddhistCalendar.cs
- DataGridColumnCollectionEditor.cs
- ConfigurationPermission.cs
- DataException.cs
- HostProtectionPermission.cs
- DeferredBinaryDeserializerExtension.cs
- X509CertificateEndpointIdentity.cs
- TypeToken.cs
- XslException.cs
- ToolStripComboBox.cs
- CheckoutException.cs
- SecondaryViewProvider.cs
- ObjectStorage.cs
- BrushConverter.cs
- SymmetricSecurityBindingElement.cs
- ListViewTableCell.cs
- MDIClient.cs
- CacheDependency.cs
- FixedFindEngine.cs
- TypeElement.cs
- DataGridViewRowPostPaintEventArgs.cs
- ToolStripCollectionEditor.cs
- RootBrowserWindowProxy.cs
- ViewCellSlot.cs
- MimeFormReflector.cs
- shaperfactoryquerycacheentry.cs
- OracleConnection.cs
- TypeUsage.cs
- StringFormat.cs
- SymbolMethod.cs
- ObjectView.cs
- ManualResetEvent.cs
- BamlRecords.cs
- SecurityPermission.cs
- PopupRoot.cs
- TemplateBindingExpression.cs
- RSACryptoServiceProvider.cs
- DataKey.cs
- StartUpEventArgs.cs
- TrackingMemoryStream.cs
- WebPartEditVerb.cs
- InputProviderSite.cs
- PersonalizableAttribute.cs
- RepeatEnumerable.cs
- EncoderParameters.cs
- WindowsStreamSecurityBindingElement.cs
- ControlPropertyNameConverter.cs
- CryptoProvider.cs
- LinqDataSourceSelectEventArgs.cs
- HttpWriter.cs
- SqlDataSourceQueryEditor.cs
- DataGridViewSelectedCellCollection.cs
- ReadOnlyDataSourceView.cs
- Roles.cs
- StatusBarDesigner.cs
- ResponseBodyWriter.cs
- SignatureGenerator.cs
- HtmlShimManager.cs
- SQLByte.cs
- ThreadAbortException.cs
- XmlILStorageConverter.cs
- BackStopAuthenticationModule.cs
- InputElement.cs
- RemoteHelper.cs
- UnmanagedMemoryStream.cs
- InfoCard.cs
- ReachSerializationUtils.cs
- TextElementCollectionHelper.cs
- FormsAuthenticationUserCollection.cs
- TdsParameterSetter.cs
- ToolStripSystemRenderer.cs
- VerificationAttribute.cs
- XmlAttributeAttribute.cs
- SqlUdtInfo.cs
- BamlRecordHelper.cs
- GraphicsContainer.cs
- ItemAutomationPeer.cs
- ProjectionPruner.cs
- LambdaSerializationException.cs
- SendingRequestEventArgs.cs
- JsonFormatWriterGenerator.cs
- NetworkInterface.cs
- Vector3DCollectionConverter.cs
- BufferedWebEventProvider.cs
- FilteredSchemaElementLookUpTable.cs
- MappedMetaModel.cs
- Msec.cs
- ComplexBindingPropertiesAttribute.cs
- HMAC.cs
- WebPartManagerInternals.cs
- XomlCompilerParameters.cs
- IPEndPoint.cs
- HTMLTagNameToTypeMapper.cs
- DataGridToolTip.cs
- UnitySerializationHolder.cs
- HScrollProperties.cs
- AudioFormatConverter.cs
- AppSettingsSection.cs
- ObjectDataSourceWizardForm.cs