Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / ExeContext.cs / 1 / 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
- ContainerParagraph.cs
- PropertyMapper.cs
- SqlWriter.cs
- DataGridViewTextBoxColumn.cs
- MLangCodePageEncoding.cs
- WorkflowMarkupSerializer.cs
- DataRelationPropertyDescriptor.cs
- ListenerAdapterBase.cs
- NativeCompoundFileAPIs.cs
- HotSpot.cs
- RangeValidator.cs
- ContentFilePart.cs
- HashRepartitionEnumerator.cs
- FactoryGenerator.cs
- SQLBoolean.cs
- DictionaryEntry.cs
- PointLightBase.cs
- TemplatePartAttribute.cs
- HttpWriter.cs
- Decoder.cs
- Substitution.cs
- StoreConnection.cs
- Size3D.cs
- WebReferencesBuildProvider.cs
- DragSelectionMessageFilter.cs
- OdbcConnectionFactory.cs
- ScrollData.cs
- XPathNodeIterator.cs
- CompilerScope.cs
- BuildManagerHost.cs
- ListBox.cs
- InstalledVoice.cs
- SiteMapNodeItem.cs
- ValueOfAction.cs
- ApplicationServiceHelper.cs
- RightsManagementEncryptionTransform.cs
- TypeElement.cs
- QilParameter.cs
- SoapIncludeAttribute.cs
- ChannelManagerService.cs
- CfgSemanticTag.cs
- StatusBar.cs
- BamlCollectionHolder.cs
- FixedSOMGroup.cs
- ProcessHostServerConfig.cs
- ToolStripMenuItem.cs
- ThicknessKeyFrameCollection.cs
- ExpressionQuoter.cs
- TextTreeTextElementNode.cs
- ConfigurationPermission.cs
- sqlcontext.cs
- DocumentsTrace.cs
- IriParsingElement.cs
- SpeechAudioFormatInfo.cs
- OleDbInfoMessageEvent.cs
- PngBitmapDecoder.cs
- _DomainName.cs
- SessionSwitchEventArgs.cs
- HeaderedItemsControl.cs
- CurrentChangingEventArgs.cs
- URLIdentityPermission.cs
- _ScatterGatherBuffers.cs
- DesignerCategoryAttribute.cs
- Utils.cs
- Region.cs
- TextTreeObjectNode.cs
- InlineObject.cs
- PolicyStatement.cs
- AddingNewEventArgs.cs
- TextEditorParagraphs.cs
- AmbientProperties.cs
- Triplet.cs
- _SpnDictionary.cs
- StateMachine.cs
- AccessDataSourceView.cs
- UmAlQuraCalendar.cs
- AssemblyResourceLoader.cs
- HttpServerVarsCollection.cs
- Geometry3D.cs
- SafeCryptContextHandle.cs
- XmlReaderSettings.cs
- FilterElement.cs
- DynamicMetaObject.cs
- NumericUpDownAcceleration.cs
- EncoderBestFitFallback.cs
- XmlQueryType.cs
- InnerItemCollectionView.cs
- MediaElement.cs
- XmlSchemaCompilationSettings.cs
- TableAdapterManagerGenerator.cs
- EmptyControlCollection.cs
- ActivationServices.cs
- CalendarDateChangedEventArgs.cs
- GroupBox.cs
- MetadataItemSerializer.cs
- BitmapPalette.cs
- Camera.cs
- CacheEntry.cs
- DomNameTable.cs
- InfiniteIntConverter.cs