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
- RichTextBox.cs
- CompModSwitches.cs
- StateDesigner.TransitionInfo.cs
- RectangleF.cs
- ToolStripDropDown.cs
- GridItemProviderWrapper.cs
- IconHelper.cs
- ImpersonationContext.cs
- FixUp.cs
- MaskDesignerDialog.cs
- X509WindowsSecurityToken.cs
- StylusCaptureWithinProperty.cs
- PenCursorManager.cs
- XmlAtomicValue.cs
- SymbolMethod.cs
- SqlUserDefinedTypeAttribute.cs
- AuthenticationSchemesHelper.cs
- ByteStack.cs
- Asn1Utilities.cs
- SecurityKeyUsage.cs
- ScriptingJsonSerializationSection.cs
- NameValueCollection.cs
- TypeInfo.cs
- ObjectAssociationEndMapping.cs
- BatchServiceHost.cs
- FunctionDefinition.cs
- CompoundFileReference.cs
- PointHitTestParameters.cs
- NativeWindow.cs
- LeftCellWrapper.cs
- GeometryCollection.cs
- Menu.cs
- ReversePositionQuery.cs
- TimeSpan.cs
- MimePart.cs
- VolatileResourceManager.cs
- ToggleButtonAutomationPeer.cs
- TextPatternIdentifiers.cs
- CriticalExceptions.cs
- AlphabetConverter.cs
- SchemaHelper.cs
- SafeNativeMethods.cs
- DesignerImageAdapter.cs
- CompilerCollection.cs
- GridViewAutomationPeer.cs
- RectangleConverter.cs
- SafeRegistryKey.cs
- WindowsEditBoxRange.cs
- RuntimeDelegateArgument.cs
- NumericUpDownAcceleration.cs
- CurrentChangingEventManager.cs
- CommandField.cs
- SByteConverter.cs
- ViewValidator.cs
- Grant.cs
- StrokeNodeOperations.cs
- XmlChildEnumerator.cs
- configsystem.cs
- SymLanguageType.cs
- SynchronizedPool.cs
- SqlDataSourceStatusEventArgs.cs
- ResourcePermissionBase.cs
- ProfilePropertyNameValidator.cs
- GenericTypeParameterBuilder.cs
- BufferedGraphics.cs
- TemplateXamlParser.cs
- DataContractSet.cs
- UriParserTemplates.cs
- PenThread.cs
- Part.cs
- SecureUICommand.cs
- MenuItemBindingCollection.cs
- RSAPKCS1SignatureFormatter.cs
- SizeChangedEventArgs.cs
- TextParagraphCache.cs
- Message.cs
- EmptyCollection.cs
- Bidi.cs
- TransformGroup.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- AppDomainFactory.cs
- StateChangeEvent.cs
- SqlStatistics.cs
- ProfileSettingsCollection.cs
- SystemMulticastIPAddressInformation.cs
- XmlSchemaAppInfo.cs
- TransformGroup.cs
- SoapTypeAttribute.cs
- CompModSwitches.cs
- ManagementObjectCollection.cs
- DictionaryContent.cs
- WaitForChangedResult.cs
- TableHeaderCell.cs
- ColumnClickEvent.cs
- TableLayoutRowStyleCollection.cs
- ConnectionPoint.cs
- XmlNavigatorStack.cs
- WpfWebRequestHelper.cs
- PropertyEntry.cs
- VirtualPathProvider.cs