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
- DataGridBoundColumn.cs
- XPathParser.cs
- ThumbAutomationPeer.cs
- TabItemWrapperAutomationPeer.cs
- SessionStateUtil.cs
- MemberJoinTreeNode.cs
- XmlBindingWorker.cs
- ScriptBehaviorDescriptor.cs
- PerfCounters.cs
- RangeBaseAutomationPeer.cs
- FormViewRow.cs
- IteratorFilter.cs
- MatrixConverter.cs
- BaseTemplatedMobileComponentEditor.cs
- XmlSchemaCompilationSettings.cs
- ExpandSegment.cs
- ProfileEventArgs.cs
- Frame.cs
- ParserExtension.cs
- CreateUserWizard.cs
- CodeDomConfigurationHandler.cs
- SchemaImporter.cs
- SqlTypeSystemProvider.cs
- Native.cs
- TableItemPattern.cs
- MemoryMappedFileSecurity.cs
- FollowerQueueCreator.cs
- TreeNode.cs
- GridItemPattern.cs
- MachineKeyValidationConverter.cs
- TypeLibConverter.cs
- BitStream.cs
- MissingManifestResourceException.cs
- StreamGeometryContext.cs
- ProgressBarRenderer.cs
- _LoggingObject.cs
- ContentHostHelper.cs
- PropertyMetadata.cs
- HtmlDocument.cs
- CaseExpr.cs
- DropTarget.cs
- BuildProvider.cs
- Helpers.cs
- TagMapInfo.cs
- Util.cs
- CommonProperties.cs
- OutputCacheProfile.cs
- MessageLogger.cs
- TimelineClockCollection.cs
- LoadMessageLogger.cs
- TextSelectionHighlightLayer.cs
- TypedAsyncResult.cs
- TreeNodeCollection.cs
- MissingSatelliteAssemblyException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- StructuralComparisons.cs
- ImageList.cs
- Matrix3DConverter.cs
- Knowncolors.cs
- VectorCollectionValueSerializer.cs
- SqlDataAdapter.cs
- GlyphManager.cs
- UpdateTracker.cs
- control.ime.cs
- TraceContextRecord.cs
- SerTrace.cs
- InteropDesigner.xaml.cs
- SetterBaseCollection.cs
- DataGridViewRowConverter.cs
- MsmqOutputSessionChannel.cs
- WebPartCloseVerb.cs
- PickDesigner.xaml.cs
- ExtensionFile.cs
- BitmapInitialize.cs
- login.cs
- ProgressBarBrushConverter.cs
- ExeContext.cs
- CodeFieldReferenceExpression.cs
- EmptyReadOnlyDictionaryInternal.cs
- GridViewAutoFormat.cs
- SessionState.cs
- MessageHeaderAttribute.cs
- LastQueryOperator.cs
- WindowsBrush.cs
- ControlEvent.cs
- PresentationSource.cs
- SafeBitVector32.cs
- FilteredAttributeCollection.cs
- DataGridViewCellCollection.cs
- SerializationObjectManager.cs
- MSG.cs
- DataPagerFieldCommandEventArgs.cs
- Latin1Encoding.cs
- ObjectSecurityT.cs
- NavigationWindowAutomationPeer.cs
- StringValueSerializer.cs
- IdentifierService.cs
- DataServiceQueryProvider.cs
- AlternateViewCollection.cs
- CfgParser.cs