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
- Missing.cs
- WarningException.cs
- XmlWrappingReader.cs
- ProtectedConfigurationProviderCollection.cs
- Win32KeyboardDevice.cs
- SingleObjectCollection.cs
- DateTimeFormat.cs
- ColorConverter.cs
- ConfigurationLoaderException.cs
- Cloud.cs
- EventDrivenDesigner.cs
- XmlILOptimizerVisitor.cs
- CodeCatchClause.cs
- TreeViewDesigner.cs
- TypeHelpers.cs
- ConfigurationSectionCollection.cs
- documentation.cs
- PropertyEntry.cs
- _DisconnectOverlappedAsyncResult.cs
- CommonProperties.cs
- TextBox.cs
- RC2CryptoServiceProvider.cs
- KnownTypesProvider.cs
- WpfKnownMember.cs
- Color.cs
- CompositeActivityCodeGenerator.cs
- StandardCommands.cs
- JulianCalendar.cs
- pingexception.cs
- ResourceAttributes.cs
- AccessKeyManager.cs
- CheckBoxBaseAdapter.cs
- DesignUtil.cs
- BamlRecordWriter.cs
- XpsException.cs
- MemoryStream.cs
- HttpRawResponse.cs
- ModifierKeysValueSerializer.cs
- DataControlButton.cs
- Vector3DConverter.cs
- SimpleColumnProvider.cs
- IPEndPointCollection.cs
- CustomErrorCollection.cs
- AdapterDictionary.cs
- BamlLocalizableResourceKey.cs
- SamlConstants.cs
- MediaCommands.cs
- Viewport3DAutomationPeer.cs
- Misc.cs
- NullableFloatSumAggregationOperator.cs
- SecurityException.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridViewRowsAddedEventArgs.cs
- Debug.cs
- ResourceAttributes.cs
- RulePatternOps.cs
- HttpCacheParams.cs
- CodeParameterDeclarationExpression.cs
- BindingNavigatorDesigner.cs
- AttachedAnnotationChangedEventArgs.cs
- AppDomainManager.cs
- LinkedList.cs
- StubHelpers.cs
- CqlIdentifiers.cs
- XmlSchemaSimpleTypeList.cs
- figurelength.cs
- UnmanagedBitmapWrapper.cs
- ServicesUtilities.cs
- ListGeneralPage.cs
- FunctionOverloadResolver.cs
- DbReferenceCollection.cs
- bindurihelper.cs
- WebPartEditorOkVerb.cs
- HttpListenerRequestUriBuilder.cs
- DataFormats.cs
- PixelShader.cs
- ProfileSettingsCollection.cs
- CallSiteBinder.cs
- SafeBitVector32.cs
- UICuesEvent.cs
- SHA512Managed.cs
- ActivatedMessageQueue.cs
- XmlSchemaAttribute.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Label.cs
- MaterialGroup.cs
- Identifier.cs
- ListViewCancelEventArgs.cs
- IriParsingElement.cs
- ReadOnlyState.cs
- IPEndPoint.cs
- DesignerCalendarAdapter.cs
- BitmapImage.cs
- DataServiceRequestOfT.cs
- ListViewGroupItemCollection.cs
- FacetChecker.cs
- SafeEventLogWriteHandle.cs
- Focus.cs
- OptimizedTemplateContentHelper.cs
- CqlLexer.cs