Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ColorAnimationUsingKeyFrames.cs
- SatelliteContractVersionAttribute.cs
- SmtpNetworkElement.cs
- OrderingExpression.cs
- CancellationHandlerDesigner.cs
- XmlAnyElementAttributes.cs
- MetadataArtifactLoaderResource.cs
- DependsOnAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- System.Data.OracleClient_BID.cs
- ToolboxItemCollection.cs
- CodeCommentStatement.cs
- ItemsControlAutomationPeer.cs
- BuildProvider.cs
- FileSystemInfo.cs
- EndpointDispatcher.cs
- DemultiplexingClientMessageFormatter.cs
- GridViewColumnCollection.cs
- DataSourceCollectionBase.cs
- TypeForwardedFromAttribute.cs
- ClientSession.cs
- _DisconnectOverlappedAsyncResult.cs
- CryptoProvider.cs
- IpcServerChannel.cs
- MessageFault.cs
- BitmapEffectGroup.cs
- regiisutil.cs
- HuffCodec.cs
- BinaryMessageFormatter.cs
- InputGestureCollection.cs
- CommonProperties.cs
- PolyLineSegment.cs
- ContentType.cs
- ColumnWidthChangedEvent.cs
- XmlParserContext.cs
- SqlBinder.cs
- HttpFileCollection.cs
- HostedTransportConfigurationBase.cs
- IconConverter.cs
- TableLayout.cs
- BidPrivateBase.cs
- returneventsaver.cs
- RSAPKCS1SignatureFormatter.cs
- TiffBitmapDecoder.cs
- ImageAnimator.cs
- HwndTarget.cs
- SqlNotificationRequest.cs
- HttpGetServerProtocol.cs
- WinOEToolBoxItem.cs
- PreviewPrintController.cs
- XmlNodeReader.cs
- CompoundFileDeflateTransform.cs
- ResourceDefaultValueAttribute.cs
- XPathAncestorIterator.cs
- ListDictionaryInternal.cs
- PngBitmapDecoder.cs
- AsmxEndpointPickerExtension.cs
- LinkArea.cs
- EnumerableValidator.cs
- MemoryStream.cs
- SoapInteropTypes.cs
- HttpListenerPrefixCollection.cs
- odbcmetadatacolumnnames.cs
- AppSettingsExpressionBuilder.cs
- RegexNode.cs
- ValidationError.cs
- ArgIterator.cs
- FlowDocumentReaderAutomationPeer.cs
- MimeXmlReflector.cs
- XsdDateTime.cs
- FixedSOMElement.cs
- StaticFileHandler.cs
- SplitterDesigner.cs
- XmlSchemas.cs
- DataSourceControlBuilder.cs
- NonParentingControl.cs
- ContentPosition.cs
- SqlBinder.cs
- XmlDataSourceNodeDescriptor.cs
- InheritedPropertyChangedEventArgs.cs
- MethodRental.cs
- XmlTypeMapping.cs
- SafeHandles.cs
- MsmqProcessProtocolHandler.cs
- AnimationStorage.cs
- WarningException.cs
- SymmetricAlgorithm.cs
- ChangeNode.cs
- MiniConstructorInfo.cs
- MergeFilterQuery.cs
- BindToObject.cs
- HtmlPageAdapter.cs
- ValueConversionAttribute.cs
- StatusBar.cs
- ListCollectionView.cs
- ReaderOutput.cs
- UInt16Storage.cs
- UIPermission.cs
- NamedPermissionSet.cs
- TemplateField.cs