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
- SoapTypeAttribute.cs
- GridLengthConverter.cs
- RemotingException.cs
- CollectionConverter.cs
- processwaithandle.cs
- RIPEMD160.cs
- MouseEventArgs.cs
- TemplateControl.cs
- FormViewRow.cs
- PagesChangedEventArgs.cs
- SpnEndpointIdentityExtension.cs
- AppliesToBehaviorDecisionTable.cs
- RegistrationContext.cs
- DataGridItemCollection.cs
- Lasso.cs
- DesignerSerializerAttribute.cs
- LoginView.cs
- MergePropertyDescriptor.cs
- HttpServerChannel.cs
- WindowsComboBox.cs
- ServerIdentity.cs
- AssertFilter.cs
- AddInController.cs
- UnorderedHashRepartitionStream.cs
- RegexMatch.cs
- MultiPropertyDescriptorGridEntry.cs
- MobileControlsSection.cs
- TransactionBehavior.cs
- SessionPageStatePersister.cs
- LoginCancelEventArgs.cs
- XmlBoundElement.cs
- SplitterCancelEvent.cs
- AtomServiceDocumentSerializer.cs
- Token.cs
- TemplateField.cs
- ProfileInfo.cs
- MachineKeyConverter.cs
- SafeReversePInvokeHandle.cs
- KnownTypeDataContractResolver.cs
- ReliableMessagingVersion.cs
- ExpressionBindingCollection.cs
- SaveFileDialog.cs
- SafeLibraryHandle.cs
- UIEndRequest.cs
- OptimizedTemplateContentHelper.cs
- ScrollViewer.cs
- OleDbErrorCollection.cs
- TemplateControlParser.cs
- LogAppendAsyncResult.cs
- QueryConverter.cs
- OptionUsage.cs
- FormattedText.cs
- SecurityResources.cs
- PowerStatus.cs
- TemplateNameScope.cs
- ReadOnlyCollectionBuilder.cs
- ScrollBar.cs
- DataGridRelationshipRow.cs
- JpegBitmapDecoder.cs
- ContentPlaceHolder.cs
- MetaModel.cs
- FacetEnabledSchemaElement.cs
- SessionState.cs
- FactoryGenerator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DoubleAnimationBase.cs
- Hyperlink.cs
- IsolatedStorageFilePermission.cs
- EpmSourceTree.cs
- InplaceBitmapMetadataWriter.cs
- XmlNodeChangedEventManager.cs
- DateTimeFormatInfoScanner.cs
- XmlHelper.cs
- X509SecurityTokenAuthenticator.cs
- Control.cs
- QilExpression.cs
- FrameworkElement.cs
- SafeHandle.cs
- SystemEvents.cs
- BroadcastEventHelper.cs
- UtilityExtension.cs
- ProcessModule.cs
- CommonProperties.cs
- SpellerError.cs
- OdbcUtils.cs
- WebPartCatalogCloseVerb.cs
- BinaryFormatterWriter.cs
- BamlResourceSerializer.cs
- XmlEncoding.cs
- NetworkInformationPermission.cs
- TreeChangeInfo.cs
- DataGridViewSelectedCellCollection.cs
- GPPOINT.cs
- EventLogEntry.cs
- SimpleApplicationHost.cs
- _BaseOverlappedAsyncResult.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- LogRestartAreaEnumerator.cs
- IArgumentProvider.cs
- IPPacketInformation.cs