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
- CreateUserWizard.cs
- XmlArrayAttribute.cs
- DecimalFormatter.cs
- ContextInformation.cs
- TableCell.cs
- ManipulationStartingEventArgs.cs
- ValueUnavailableException.cs
- EntityDataSourceDesignerHelper.cs
- InputLanguageEventArgs.cs
- ScopeCompiler.cs
- TextServicesContext.cs
- CommittableTransaction.cs
- Int32KeyFrameCollection.cs
- ToolbarAUtomationPeer.cs
- ControlBuilder.cs
- PolyQuadraticBezierSegment.cs
- XmlSchemaDatatype.cs
- PathGradientBrush.cs
- Accessible.cs
- EntitySqlException.cs
- EntityAdapter.cs
- BitmapEffectDrawing.cs
- ObjectHelper.cs
- HiddenFieldPageStatePersister.cs
- regiisutil.cs
- UnicastIPAddressInformationCollection.cs
- SizeAnimationClockResource.cs
- PagesSection.cs
- EngineSiteSapi.cs
- QilXmlWriter.cs
- SQLSingle.cs
- SocketPermission.cs
- EdmProviderManifest.cs
- WrapPanel.cs
- XmlUnspecifiedAttribute.cs
- DescendentsWalker.cs
- IsolatedStorage.cs
- SapiGrammar.cs
- DataServiceExpressionVisitor.cs
- ECDiffieHellmanCng.cs
- SystemParameters.cs
- OneWayBindingElement.cs
- WriteStateInfoBase.cs
- TreeViewCancelEvent.cs
- ErrorInfoXmlDocument.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- MsmqIntegrationBinding.cs
- Operator.cs
- AmbientProperties.cs
- AssemblyAttributesGoHere.cs
- LicFileLicenseProvider.cs
- WhitespaceReader.cs
- Transactions.cs
- MarshalByRefObject.cs
- QilIterator.cs
- BitmapMetadataBlob.cs
- MSAANativeProvider.cs
- CodeTypeReferenceCollection.cs
- PagerSettings.cs
- WindowCollection.cs
- CellIdBoolean.cs
- EditableLabelControl.cs
- ListViewSelectEventArgs.cs
- ContentPresenter.cs
- PkcsMisc.cs
- SymLanguageType.cs
- NetTcpBinding.cs
- CultureInfoConverter.cs
- WorkflowInvoker.cs
- XPathSelectionIterator.cs
- ContextMenuStripActionList.cs
- ArraySortHelper.cs
- FloaterBaseParagraph.cs
- BlurBitmapEffect.cs
- AppLevelCompilationSectionCache.cs
- WebConfigurationManager.cs
- BreakRecordTable.cs
- ComponentRenameEvent.cs
- StickyNoteHelper.cs
- DataSvcMapFileSerializer.cs
- PageSettings.cs
- PagesSection.cs
- ProxyFragment.cs
- XPathNavigator.cs
- CodeGen.cs
- XmlEventCache.cs
- SiteMapPath.cs
- SQLSingleStorage.cs
- AppDomainManager.cs
- HtmlWindowCollection.cs
- HtmlMeta.cs
- ImplicitInputBrush.cs
- UntrustedRecipientException.cs
- Array.cs
- InstanceLockException.cs
- InputElement.cs
- SrgsRulesCollection.cs
- SelectionHighlightInfo.cs
- TextStore.cs
- InvalidCastException.cs