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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CfgParser.cs
- EnterpriseServicesHelper.cs
- TPLETWProvider.cs
- Color.cs
- WebBrowserPermission.cs
- DesignBindingPropertyDescriptor.cs
- WebPartAuthorizationEventArgs.cs
- DoubleCollectionConverter.cs
- SystemGatewayIPAddressInformation.cs
- ObjectDataSourceView.cs
- TrustLevelCollection.cs
- MbpInfo.cs
- ContractMapping.cs
- CompressedStack.cs
- FormDesigner.cs
- Error.cs
- ScriptControl.cs
- DisplayInformation.cs
- Graphics.cs
- UrlEncodedParameterWriter.cs
- ZoneIdentityPermission.cs
- X509ChainElement.cs
- OLEDB_Enum.cs
- Label.cs
- GenericAuthenticationEventArgs.cs
- PropertyChangedEventManager.cs
- RuleRefElement.cs
- LabelEditEvent.cs
- HostingEnvironment.cs
- PermissionSetTriple.cs
- SourceFileInfo.cs
- PasswordPropertyTextAttribute.cs
- login.cs
- DecoderBestFitFallback.cs
- ButtonFlatAdapter.cs
- TextTreeTextElementNode.cs
- ComponentCodeDomSerializer.cs
- DPCustomTypeDescriptor.cs
- XmlResolver.cs
- InvokeMethod.cs
- DateTimeParse.cs
- BooleanSwitch.cs
- XmlDataCollection.cs
- Ops.cs
- ListComponentEditor.cs
- WorkflowApplicationUnloadedException.cs
- DesignerCalendarAdapter.cs
- Point.cs
- ApplicationManager.cs
- BaseTemplateBuildProvider.cs
- VarInfo.cs
- EncryptedPackageFilter.cs
- OpenTypeCommon.cs
- LinqDataSourceContextEventArgs.cs
- ManifestResourceInfo.cs
- SystemSounds.cs
- HyperlinkAutomationPeer.cs
- AndCondition.cs
- NetNamedPipeBinding.cs
- ConfigXmlAttribute.cs
- ModelTreeEnumerator.cs
- MessagingDescriptionAttribute.cs
- TabControlAutomationPeer.cs
- UrlAuthFailedErrorFormatter.cs
- WebConvert.cs
- RoutedPropertyChangedEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- PrefixQName.cs
- BatchParser.cs
- SimpleHandlerBuildProvider.cs
- BezierSegment.cs
- StackOverflowException.cs
- FillBehavior.cs
- ClientTargetSection.cs
- Transform3D.cs
- Serializer.cs
- BasePattern.cs
- ScriptRegistrationManager.cs
- DBParameter.cs
- LongPath.cs
- CalendarData.cs
- WebRequestModuleElement.cs
- InputScope.cs
- ComponentResourceKeyConverter.cs
- WindowsSpinner.cs
- DPTypeDescriptorContext.cs
- CreateUserWizardDesigner.cs
- Publisher.cs
- MimeTypeMapper.cs
- Fx.cs
- MetadataArtifactLoaderComposite.cs
- XmlElementList.cs
- DetailsView.cs
- SynchronizedMessageSource.cs
- FlowDocumentFormatter.cs
- KeyProperty.cs
- HttpNamespaceReservationInstallComponent.cs
- RegionData.cs
- NavigateEvent.cs
- NamespaceCollection.cs