Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextWriterTraceListener.cs
- CacheVirtualItemsEvent.cs
- SecurityKeyIdentifier.cs
- SqlNotificationRequest.cs
- ListenerServiceInstallComponent.cs
- Win32MouseDevice.cs
- WebException.cs
- XPathAncestorQuery.cs
- GroupBoxAutomationPeer.cs
- WebPartsPersonalization.cs
- HierarchicalDataBoundControlAdapter.cs
- SmtpFailedRecipientException.cs
- HttpUnhandledOperationInvoker.cs
- BrushValueSerializer.cs
- LinqDataSourceEditData.cs
- EntitySetDataBindingList.cs
- WebPartZoneBase.cs
- TextEndOfLine.cs
- CodeGroup.cs
- XmlSerializerAssemblyAttribute.cs
- XmlILCommand.cs
- LinqToSqlWrapper.cs
- Dynamic.cs
- StateRuntime.cs
- RangeValuePattern.cs
- CancelEventArgs.cs
- XmlSchemaImport.cs
- CacheRequest.cs
- ObjectCloneHelper.cs
- BamlVersionHeader.cs
- ResponseStream.cs
- RuntimeWrappedException.cs
- StateRuntime.cs
- CharEnumerator.cs
- GeneralTransform3DCollection.cs
- CornerRadiusConverter.cs
- RawUIStateInputReport.cs
- Pens.cs
- XmlWrappingReader.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SimpleFileLog.cs
- DefaultValueMapping.cs
- MeasurementDCInfo.cs
- DllNotFoundException.cs
- OleDbCommand.cs
- Sql8ExpressionRewriter.cs
- SQLDateTime.cs
- AnimationLayer.cs
- ListViewCancelEventArgs.cs
- SHA512Managed.cs
- HyperlinkAutomationPeer.cs
- CryptoStream.cs
- ComboBox.cs
- XmlSortKey.cs
- OpenFileDialog.cs
- BaseInfoTable.cs
- DrawingDrawingContext.cs
- EventLogStatus.cs
- TypeDependencyAttribute.cs
- LongCountAggregationOperator.cs
- SaveFileDialog.cs
- DBNull.cs
- DuplicateDetector.cs
- GroupQuery.cs
- RegexGroupCollection.cs
- Timer.cs
- PlanCompilerUtil.cs
- XmlQualifiedName.cs
- DetailsViewRowCollection.cs
- CommandValueSerializer.cs
- AnimationClock.cs
- Marshal.cs
- PropertyGeneratedEventArgs.cs
- ProfessionalColorTable.cs
- BinaryObjectReader.cs
- Visual.cs
- Command.cs
- TypeSource.cs
- PointAnimationBase.cs
- SystemIPGlobalStatistics.cs
- hwndwrapper.cs
- WrappedIUnknown.cs
- IWorkflowDebuggerService.cs
- TextSpanModifier.cs
- SinglePageViewer.cs
- DbBuffer.cs
- LinkedResourceCollection.cs
- TreeViewCancelEvent.cs
- _SingleItemRequestCache.cs
- OrderedDictionaryStateHelper.cs
- CompositionTarget.cs
- LinearGradientBrush.cs
- TextBoxBase.cs
- EdmMember.cs
- COM2TypeInfoProcessor.cs
- PerfCounterSection.cs
- ToolBarPanel.cs
- RectIndependentAnimationStorage.cs
- FtpWebResponse.cs
- DrawingCollection.cs