Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ExeConfigurationFileMap.cs / 1305376 / 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;
}
public ExeConfigurationFileMap(string machineConfigFileName)
: base(machineConfigFileName) {
_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
- ConnectionPoolManager.cs
- NavigationExpr.cs
- FormatterConverter.cs
- MailMessage.cs
- ReaderWriterLockWrapper.cs
- DropTarget.cs
- XmlDataFileEditor.cs
- DataSourceSelectArguments.cs
- MemoryMappedFile.cs
- keycontainerpermission.cs
- FacetChecker.cs
- VectorCollectionConverter.cs
- ImageCodecInfoPrivate.cs
- CompositeCollection.cs
- SessionPageStateSection.cs
- KoreanLunisolarCalendar.cs
- TypedAsyncResult.cs
- Confirm.cs
- RangeExpression.cs
- ServiceOperationParameter.cs
- FormViewModeEventArgs.cs
- Storyboard.cs
- DecimalConverter.cs
- ContentDisposition.cs
- ClientTargetSection.cs
- TailCallAnalyzer.cs
- ObfuscateAssemblyAttribute.cs
- CodeStatement.cs
- SQLBinaryStorage.cs
- Identifier.cs
- TagMapCollection.cs
- TableRowGroup.cs
- XmlSchemaValidationException.cs
- AssemblyAssociatedContentFileAttribute.cs
- CommentEmitter.cs
- ContentIterators.cs
- MenuRendererClassic.cs
- Variable.cs
- UserMapPath.cs
- RubberbandSelector.cs
- MatrixConverter.cs
- AutomationProperties.cs
- EntitySqlException.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- InstanceDescriptor.cs
- SecureEnvironment.cs
- FormatSettings.cs
- KeyValueConfigurationCollection.cs
- HttpProxyTransportBindingElement.cs
- ResolveNameEventArgs.cs
- ImageListStreamer.cs
- QueryAccessibilityHelpEvent.cs
- RuntimeConfigurationRecord.cs
- UnsafeNativeMethods.cs
- XmlBinaryReader.cs
- PropertyIdentifier.cs
- ScrollChrome.cs
- TrustLevelCollection.cs
- ControlIdConverter.cs
- ImageCollectionCodeDomSerializer.cs
- AttachedAnnotation.cs
- ReceiveMessageContent.cs
- EpmTargetTree.cs
- SessionIDManager.cs
- CommonXSendMessage.cs
- StreamResourceInfo.cs
- ProjectionQueryOptionExpression.cs
- TreeViewTemplateSelector.cs
- InvalidCommandTreeException.cs
- ThemeDictionaryExtension.cs
- DbProviderFactory.cs
- MessageQueueAccessControlEntry.cs
- ExclusiveCanonicalizationTransform.cs
- UserPreferenceChangedEventArgs.cs
- CrossAppDomainChannel.cs
- TrustLevel.cs
- PropertyEmitter.cs
- MruCache.cs
- X509ClientCertificateAuthenticationElement.cs
- ClickablePoint.cs
- NumberFormatInfo.cs
- QilDataSource.cs
- UnionCodeGroup.cs
- DataGridViewHitTestInfo.cs
- _BasicClient.cs
- DateBoldEvent.cs
- Errors.cs
- DrawItemEvent.cs
- WorkflowPrinting.cs
- Encoder.cs
- Formatter.cs
- LogStore.cs
- OptimalTextSource.cs
- HostProtectionException.cs
- ZipArchive.cs
- ErrorInfoXmlDocument.cs
- TimeZone.cs
- EpmSourceTree.cs
- CssClassPropertyAttribute.cs
- EntityParameterCollection.cs