Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ExeContext.cs / 1305376 / ExeContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Configuration { // ExeContext // // Represents the ExeContext that we are running within // public sealed class ExeContext { private ConfigurationUserLevel _userContext; private string _exePath; // Constructor // // Constructor // internal ExeContext( ConfigurationUserLevel userContext, string exePath ) { _userContext = userContext; _exePath = exePath; } // UserLevel // // The ConfigurationUserLevel that we are running within. // // Note: ConfigurationUserLevel.None will be set for machine.config // and the applicationconfig file. Use IsMachineConfig in // ConfigurationContext, to determine the difference. // public ConfigurationUserLevel UserLevel { get { return _userContext; } } // ExePath // // What is the full path to the exe that we are running for? // public string ExePath { get { return _exePath; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Configuration { // ExeContext // // Represents the ExeContext that we are running within // public sealed class ExeContext { private ConfigurationUserLevel _userContext; private string _exePath; // Constructor // // Constructor // internal ExeContext( ConfigurationUserLevel userContext, string exePath ) { _userContext = userContext; _exePath = exePath; } // UserLevel // // The ConfigurationUserLevel that we are running within. // // Note: ConfigurationUserLevel.None will be set for machine.config // and the applicationconfig file. Use IsMachineConfig in // ConfigurationContext, to determine the difference. // public ConfigurationUserLevel UserLevel { get { return _userContext; } } // ExePath // // What is the full path to the exe that we are running for? // public string ExePath { get { return _exePath; } } } } // 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
- FtpWebRequest.cs
- ServiceKnownTypeAttribute.cs
- ExtractedStateEntry.cs
- Int16AnimationBase.cs
- DataBoundControlHelper.cs
- TerminatorSinks.cs
- PrintDialog.cs
- ContentFileHelper.cs
- CodeConditionStatement.cs
- TextMetrics.cs
- DbProviderFactories.cs
- DSACryptoServiceProvider.cs
- DataGridViewCellStateChangedEventArgs.cs
- HMACSHA384.cs
- InputLanguageManager.cs
- RtfControlWordInfo.cs
- UnicodeEncoding.cs
- MenuBase.cs
- WebBrowserPermission.cs
- XmlSchemaProviderAttribute.cs
- UpnEndpointIdentityExtension.cs
- DocumentSequence.cs
- DbConnectionStringBuilder.cs
- StylusPointCollection.cs
- MimeTypePropertyAttribute.cs
- ConnectionManagementElement.cs
- EpmSourcePathSegment.cs
- UmAlQuraCalendar.cs
- WebPartDisplayMode.cs
- SqlGenericUtil.cs
- UpdateCommand.cs
- BinaryKeyIdentifierClause.cs
- MulticastNotSupportedException.cs
- KernelTypeValidation.cs
- MetaTable.cs
- SrgsRuleRef.cs
- MetadataPropertyvalue.cs
- WindowsProgressbar.cs
- ZipIOCentralDirectoryBlock.cs
- FrameworkElementAutomationPeer.cs
- CollectionExtensions.cs
- DbConnectionStringBuilder.cs
- TemplateColumn.cs
- Connector.cs
- UnknownWrapper.cs
- Pen.cs
- DataGridBoolColumn.cs
- StateRuntime.cs
- HtmlElementCollection.cs
- SystemUdpStatistics.cs
- GcSettings.cs
- InputLanguageSource.cs
- ServiceDebugElement.cs
- Header.cs
- KeyNameIdentifierClause.cs
- ArraySegment.cs
- WebPartActionVerb.cs
- X509SecurityToken.cs
- PieceDirectory.cs
- InstallHelper.cs
- CombinedGeometry.cs
- BypassElementCollection.cs
- NonBatchDirectoryCompiler.cs
- SqlCacheDependency.cs
- GetResponse.cs
- StandardOleMarshalObject.cs
- ResourceDictionaryCollection.cs
- RSACryptoServiceProvider.cs
- XPathSelectionIterator.cs
- SafeEventLogReadHandle.cs
- TextControlDesigner.cs
- SectionXmlInfo.cs
- BrowserTree.cs
- DiagnosticsConfigurationHandler.cs
- ConfigXmlCDataSection.cs
- EntityCommandCompilationException.cs
- ByteRangeDownloader.cs
- BitmapCache.cs
- OrderPreservingPipeliningSpoolingTask.cs
- JsonReaderDelegator.cs
- SizeValueSerializer.cs
- CorrelationManager.cs
- ObjectDataSourceStatusEventArgs.cs
- OutputCacheSettingsSection.cs
- BinaryParser.cs
- DataGridHelper.cs
- newinstructionaction.cs
- wgx_render.cs
- DefaultTextStore.cs
- ContextStaticAttribute.cs
- StructuredType.cs
- SqlTypeConverter.cs
- InstanceValue.cs
- TreeNodeConverter.cs
- SQLMoneyStorage.cs
- ProcessInputEventArgs.cs
- StructuralType.cs
- XMLUtil.cs
- SecurityContextSecurityTokenParameters.cs
- Int16.cs