Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AutoResetEvent.cs
- AllowedAudienceUriElementCollection.cs
- DataGridColumn.cs
- EntityDesignerDataSourceView.cs
- StoryFragments.cs
- ResizeGrip.cs
- FilteredAttributeCollection.cs
- BamlResourceSerializer.cs
- RegexBoyerMoore.cs
- DesignTable.cs
- PartDesigner.cs
- wgx_exports.cs
- ClientFormsAuthenticationCredentials.cs
- SynchronizedPool.cs
- Span.cs
- ServiceContractViewControl.Designer.cs
- ParameterElementCollection.cs
- ServiceObjectContainer.cs
- Stylesheet.cs
- TcpPortSharing.cs
- UICuesEvent.cs
- KeyPullup.cs
- BindToObject.cs
- LocatorGroup.cs
- webeventbuffer.cs
- SingleKeyFrameCollection.cs
- Highlights.cs
- CodeComment.cs
- WbemException.cs
- XdrBuilder.cs
- PrtTicket_Base.cs
- DbProviderFactories.cs
- UnmanagedHandle.cs
- WindowsToolbar.cs
- XamlSerializer.cs
- DataErrorValidationRule.cs
- SharedPerformanceCounter.cs
- ISAPIApplicationHost.cs
- PrintControllerWithStatusDialog.cs
- BrowserDefinitionCollection.cs
- IsolatedStorageFile.cs
- RoleManagerModule.cs
- XPathDocumentIterator.cs
- WebConfigurationHost.cs
- AxHost.cs
- HtmlTableCellCollection.cs
- DocumentApplicationJournalEntry.cs
- HttpPostedFile.cs
- ValueTable.cs
- ObjectViewListener.cs
- PackageDigitalSignatureManager.cs
- LinqDataSourceContextData.cs
- PointLightBase.cs
- HwndSource.cs
- SafeBitVector32.cs
- ClientSettingsSection.cs
- NameGenerator.cs
- KeyedCollection.cs
- AutomationPattern.cs
- ServiceEndpointElement.cs
- PrePrepareMethodAttribute.cs
- CustomAttributeSerializer.cs
- RectAnimation.cs
- ConvertersCollection.cs
- BreakRecordTable.cs
- ZipIOFileItemStream.cs
- PointValueSerializer.cs
- UpdateTranslator.cs
- LocatorBase.cs
- IteratorFilter.cs
- ImageBrush.cs
- X509PeerCertificateElement.cs
- CategoryAttribute.cs
- WebConvert.cs
- ToolStripOverflowButton.cs
- HttpRequestWrapper.cs
- BitmapEffectState.cs
- DocumentPaginator.cs
- EUCJPEncoding.cs
- XamlParser.cs
- SoapIncludeAttribute.cs
- ProcessManager.cs
- NullToBooleanConverter.cs
- CollectionViewGroupRoot.cs
- RSACryptoServiceProvider.cs
- UnicodeEncoding.cs
- WizardStepCollectionEditor.cs
- PeerHelpers.cs
- DataGridParentRows.cs
- XPathNodePointer.cs
- DataKeyCollection.cs
- ParagraphResult.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- MSHTMLHostUtil.cs
- Enum.cs
- PageRequestManager.cs
- TransformGroup.cs
- ToolStripContentPanelDesigner.cs
- QueryGenerator.cs
- TypedTableHandler.cs