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
- Variable.cs
- StatusBarDrawItemEvent.cs
- DES.cs
- StorageBasedPackageProperties.cs
- PathFigureCollectionValueSerializer.cs
- CmsInterop.cs
- AlternateView.cs
- ErrorsHelper.cs
- AttributeAction.cs
- SmtpLoginAuthenticationModule.cs
- SamlAuthenticationStatement.cs
- DataBinder.cs
- ConnectionInterfaceCollection.cs
- DataGridColumn.cs
- Utils.cs
- CodeExpressionCollection.cs
- ThreadExceptionDialog.cs
- RecognizeCompletedEventArgs.cs
- PropertyEntry.cs
- sqlstateclientmanager.cs
- SingleTagSectionHandler.cs
- InsufficientExecutionStackException.cs
- DragEventArgs.cs
- KeyValuePair.cs
- RequestCachePolicyConverter.cs
- Expression.cs
- SqlTypeSystemProvider.cs
- externdll.cs
- VerificationException.cs
- DataMisalignedException.cs
- DependencyObjectPropertyDescriptor.cs
- EntityTemplateFactory.cs
- DataSvcMapFileSerializer.cs
- RegexInterpreter.cs
- HtmlFormAdapter.cs
- OverlappedAsyncResult.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- System.Data_BID.cs
- NonVisualControlAttribute.cs
- SafeCryptoHandles.cs
- FilePrompt.cs
- ColumnMapTranslator.cs
- CatalogZoneBase.cs
- TextParagraphCache.cs
- HMACSHA384.cs
- EdmRelationshipRoleAttribute.cs
- WebBrowserPermission.cs
- PowerModeChangedEventArgs.cs
- ListViewContainer.cs
- WorkflowInstanceAbortedRecord.cs
- ThemeConfigurationDialog.cs
- ArrangedElementCollection.cs
- Stroke2.cs
- WebPartExportVerb.cs
- FixedSchema.cs
- EventLogException.cs
- AuthenticationService.cs
- ProfilePropertyNameValidator.cs
- MobileErrorInfo.cs
- SecurityIdentifierConverter.cs
- ClusterRegistryConfigurationProvider.cs
- OleTxTransactionInfo.cs
- WindowsSlider.cs
- AndCondition.cs
- CodeStatement.cs
- ClientSideProviderDescription.cs
- Facet.cs
- TransactionOptions.cs
- VarRemapper.cs
- RadialGradientBrush.cs
- MetadataFile.cs
- XmlSerializableReader.cs
- StoreItemCollection.cs
- TableLayoutSettingsTypeConverter.cs
- ProcessModelInfo.cs
- ApplicationInterop.cs
- ToolStripItemCollection.cs
- WebEvents.cs
- ModelVisual3D.cs
- TextModifierScope.cs
- SqlExpander.cs
- PeerNameRecord.cs
- _ConnectionGroup.cs
- TextTrailingWordEllipsis.cs
- StringUtil.cs
- PrintDialog.cs
- InternalControlCollection.cs
- ScriptReference.cs
- ConfigurationSettings.cs
- BookmarkScopeManager.cs
- SequenceQuery.cs
- ToolStripProgressBar.cs
- xsdvalidator.cs
- QilChoice.cs
- TypeValidationEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- cookie.cs
- EnumConverter.cs
- SqlBulkCopy.cs
- SqlClientPermission.cs