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
- AmbientEnvironment.cs
- WizardStepBase.cs
- SessionPageStatePersister.cs
- RbTree.cs
- BitmapEffectGroup.cs
- AnimationClockResource.cs
- ConnectionStringsExpressionEditor.cs
- BasicExpressionVisitor.cs
- VisualTarget.cs
- Membership.cs
- BuildManagerHost.cs
- DataGridViewCellCollection.cs
- AppLevelCompilationSectionCache.cs
- DataGridViewButtonColumn.cs
- CheckedListBox.cs
- FixedPageProcessor.cs
- XamlStream.cs
- ListViewGroupItemCollection.cs
- WmlListAdapter.cs
- X509CertificateChain.cs
- DataGridViewRowCancelEventArgs.cs
- SamlAuthenticationClaimResource.cs
- Size.cs
- ContextItemManager.cs
- BlurEffect.cs
- DataServiceContext.cs
- DocumentSequence.cs
- Source.cs
- PermissionSetTriple.cs
- NetworkAddressChange.cs
- CharacterHit.cs
- PseudoWebRequest.cs
- TemplateContentLoader.cs
- GetIndexBinder.cs
- HtmlControl.cs
- WCFBuildProvider.cs
- NavigationService.cs
- XmlSchemaSequence.cs
- ConnectionPointGlyph.cs
- ConstraintEnumerator.cs
- Label.cs
- AmbientLight.cs
- HierarchicalDataTemplate.cs
- safex509handles.cs
- CodeGroup.cs
- RegistrationServices.cs
- KernelTypeValidation.cs
- XmlWrappingReader.cs
- ConfigurationStrings.cs
- _AutoWebProxyScriptHelper.cs
- BaseTemplateParser.cs
- DesignerDataSourceView.cs
- EventManager.cs
- HwndSubclass.cs
- QueryCursorEventArgs.cs
- DefaultHttpHandler.cs
- WizardPanel.cs
- RootBuilder.cs
- DiscoveryReference.cs
- Hyperlink.cs
- DocumentReferenceCollection.cs
- HttpStreamMessage.cs
- QueryRelOp.cs
- X509Certificate.cs
- HierarchicalDataBoundControlAdapter.cs
- AsyncPostBackTrigger.cs
- GuidConverter.cs
- BinaryFormatter.cs
- FieldAccessException.cs
- ZipIOLocalFileHeader.cs
- ComplusTypeValidator.cs
- SourceSwitch.cs
- Rect.cs
- ClientScriptManager.cs
- InputScopeConverter.cs
- ContactManager.cs
- XmlCharCheckingReader.cs
- ExeConfigurationFileMap.cs
- InputLangChangeEvent.cs
- OdbcConnectionHandle.cs
- ScrollProperties.cs
- DbgCompiler.cs
- ToolboxItemAttribute.cs
- AssemblyBuilder.cs
- MessageBox.cs
- SiteMembershipCondition.cs
- SoapHttpTransportImporter.cs
- WebPartConnectionsConnectVerb.cs
- QilParameter.cs
- DataGridViewAddColumnDialog.cs
- ArgumentDesigner.xaml.cs
- EntityContainerAssociationSetEnd.cs
- DataGridViewRowStateChangedEventArgs.cs
- InstanceView.cs
- TimeSpanStorage.cs
- OutOfMemoryException.cs
- TaskFormBase.cs
- WindowInteropHelper.cs
- PathGeometry.cs
- ScrollBarRenderer.cs