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
- GACIdentityPermission.cs
- StyleCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- TreeView.cs
- DrawingImage.cs
- SqlCacheDependencyDatabaseCollection.cs
- UseLicense.cs
- OutputScope.cs
- Tile.cs
- CriticalFinalizerObject.cs
- SQLInt16Storage.cs
- MarshalByRefObject.cs
- Dump.cs
- SafeNativeMethods.cs
- MediaElementAutomationPeer.cs
- InstanceOwnerQueryResult.cs
- XPathChildIterator.cs
- TypeInformation.cs
- XmlAttributeCache.cs
- IsolatedStorageFilePermission.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SessionEndedEventArgs.cs
- SpeechEvent.cs
- Tile.cs
- SQLInt64.cs
- ScriptHandlerFactory.cs
- Transform3DCollection.cs
- LoopExpression.cs
- SqlAliasesReferenced.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- PhysicalAddress.cs
- XamlVector3DCollectionSerializer.cs
- AuthenticationService.cs
- SubMenuStyle.cs
- SpinLock.cs
- Switch.cs
- KeyManager.cs
- CustomAttributeSerializer.cs
- TagPrefixCollection.cs
- ApplicationServiceHelper.cs
- WebPartCatalogCloseVerb.cs
- InlineObject.cs
- Int16AnimationUsingKeyFrames.cs
- AuthorizationRule.cs
- WebPartManagerInternals.cs
- SQLInt16Storage.cs
- updateconfighost.cs
- NativeMethods.cs
- CodeNamespaceCollection.cs
- ButtonColumn.cs
- HideDisabledControlAdapter.cs
- GcSettings.cs
- MetadataItemCollectionFactory.cs
- HeaderedItemsControl.cs
- SrgsSemanticInterpretationTag.cs
- VectorCollectionValueSerializer.cs
- SByteConverter.cs
- XmlUtil.cs
- dsa.cs
- WinFormsComponentEditor.cs
- XmlSchemaRedefine.cs
- Point3DKeyFrameCollection.cs
- MostlySingletonList.cs
- WindowsListView.cs
- XslAst.cs
- UserNamePasswordValidator.cs
- XmlWhitespace.cs
- SvcMapFile.cs
- ExpressionConverter.cs
- WebPartHelpVerb.cs
- Rectangle.cs
- IntSecurity.cs
- UIElementParaClient.cs
- UndirectedGraph.cs
- HyperLinkField.cs
- RIPEMD160Managed.cs
- PointLightBase.cs
- PageSettings.cs
- ErrorEventArgs.cs
- ProfileBuildProvider.cs
- ListControlConvertEventArgs.cs
- ControlUtil.cs
- DeferredRunTextReference.cs
- SizeChangedEventArgs.cs
- XmlTextReader.cs
- TextBoxBase.cs
- PtsContext.cs
- MruCache.cs
- CodeMemberField.cs
- UpdatePanelTriggerCollection.cs
- Base64Decoder.cs
- HMAC.cs
- LicenseManager.cs
- CodeTypeConstructor.cs
- ViewStateException.cs
- DataGridRow.cs
- HtmlAnchor.cs
- ErrorFormatter.cs
- RectangleF.cs
- GCHandleCookieTable.cs