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
- oledbconnectionstring.cs
- ImportContext.cs
- ConfigurationSettings.cs
- NumericExpr.cs
- _NTAuthentication.cs
- CroppedBitmap.cs
- Nodes.cs
- DoubleAnimationBase.cs
- RoutedEvent.cs
- TimeSpanConverter.cs
- HttpRequestWrapper.cs
- PointConverter.cs
- TextTreePropertyUndoUnit.cs
- StateFinalizationDesigner.cs
- ActivityExecutorDelegateInfo.cs
- WebPartEditorOkVerb.cs
- HTTPNotFoundHandler.cs
- CodeDefaultValueExpression.cs
- PerformanceCountersElement.cs
- SqlNotificationEventArgs.cs
- SQLDateTime.cs
- AmbientLight.cs
- WebPartHeaderCloseVerb.cs
- Rule.cs
- ResourceContainer.cs
- OracleTransaction.cs
- FileInfo.cs
- HandlerFactoryWrapper.cs
- SoapSchemaImporter.cs
- MarshalDirectiveException.cs
- SwitchElementsCollection.cs
- CrossAppDomainChannel.cs
- XmlAnyElementAttribute.cs
- DetailsViewRow.cs
- Grant.cs
- KeyEvent.cs
- SiteMapPath.cs
- WebPartDisplayModeEventArgs.cs
- PriorityQueue.cs
- XPathNodeIterator.cs
- IdentityHolder.cs
- XsdDuration.cs
- initElementDictionary.cs
- Set.cs
- LinearQuaternionKeyFrame.cs
- TransportManager.cs
- WebBrowserPermission.cs
- WebWorkflowRole.cs
- DataBoundControl.cs
- GeneralEndpointIdentity.cs
- IgnoreDataMemberAttribute.cs
- DataGridPagerStyle.cs
- SystemTcpStatistics.cs
- XmlILOptimizerVisitor.cs
- DataGridViewComboBoxColumn.cs
- smtppermission.cs
- DataBoundControl.cs
- CodeTypeDelegate.cs
- OdbcCommand.cs
- CardSpacePolicyElement.cs
- SoundPlayerAction.cs
- LocalizationParserHooks.cs
- SoapSchemaImporter.cs
- BindingSource.cs
- GridViewPageEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- XmlAnyElementAttributes.cs
- FocusTracker.cs
- PropertyEmitterBase.cs
- InternalMappingException.cs
- RealizationContext.cs
- FormsIdentity.cs
- Input.cs
- BamlResourceContent.cs
- RightNameExpirationInfoPair.cs
- XamlPathDataSerializer.cs
- ServiceDescription.cs
- FormattedTextSymbols.cs
- DbCommandDefinition.cs
- FontFaceLayoutInfo.cs
- ContainerTracking.cs
- ProxySimple.cs
- SuppressIldasmAttribute.cs
- RoleManagerModule.cs
- ArglessEventHandlerProxy.cs
- OleDbReferenceCollection.cs
- ControlCachePolicy.cs
- PersonalizationProviderHelper.cs
- TemplateParser.cs
- PrimitiveCodeDomSerializer.cs
- VectorKeyFrameCollection.cs
- TextRange.cs
- FixedBufferAttribute.cs
- ResumeStoryboard.cs
- SoapMessage.cs
- TemplateModeChangedEventArgs.cs
- BordersPage.cs
- StrongNameIdentityPermission.cs
- XmlSchemaFacet.cs
- DataGridItemCollection.cs