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
- SqlCacheDependencyDatabaseCollection.cs
- KerberosSecurityTokenProvider.cs
- StreamWriter.cs
- DBProviderConfigurationHandler.cs
- RelationshipType.cs
- PolicyLevel.cs
- DataServiceRequest.cs
- MethodExpr.cs
- StubHelpers.cs
- Hashtable.cs
- VirtualPathUtility.cs
- CodeTypeConstructor.cs
- SoapEnumAttribute.cs
- WSFederationHttpSecurity.cs
- LayoutEvent.cs
- EmptyEnumerable.cs
- WebPartConnectionCollection.cs
- DataGridTablesFactory.cs
- HttpProcessUtility.cs
- SafeNativeMethods.cs
- RelationshipManager.cs
- ObjectDisposedException.cs
- BitConverter.cs
- ConfigXmlWhitespace.cs
- ConfigurationSection.cs
- SoundPlayer.cs
- PointCollection.cs
- PowerModeChangedEventArgs.cs
- VariableExpressionConverter.cs
- ParameterRefs.cs
- WebPartUserCapability.cs
- CloseCryptoHandleRequest.cs
- HttpSysSettings.cs
- SoapExtensionImporter.cs
- ApplicationGesture.cs
- HtmlInputPassword.cs
- DBPropSet.cs
- PerfCounterSection.cs
- ConfigurationErrorsException.cs
- Pkcs7Signer.cs
- Constraint.cs
- WindowVisualStateTracker.cs
- HwndSourceKeyboardInputSite.cs
- EnumBuilder.cs
- MenuItemStyle.cs
- CancelEventArgs.cs
- BoundColumn.cs
- Ref.cs
- invalidudtexception.cs
- CorrelationManager.cs
- UnaryQueryOperator.cs
- SqlResolver.cs
- WindowHelperService.cs
- ReflectTypeDescriptionProvider.cs
- DataColumnCollection.cs
- Misc.cs
- CSharpCodeProvider.cs
- TreeViewItemAutomationPeer.cs
- EntityCommandCompilationException.cs
- LeaseManager.cs
- EntityContainerRelationshipSetEnd.cs
- TextFormatterHost.cs
- WizardStepBase.cs
- HashAlgorithm.cs
- AutomationPeer.cs
- GridView.cs
- OracleNumber.cs
- CatalogUtil.cs
- MgmtResManager.cs
- CachedRequestParams.cs
- XpsDocument.cs
- FocusTracker.cs
- LogicalExpressionEditor.cs
- TemplateBuilder.cs
- listitem.cs
- HideDisabledControlAdapter.cs
- CompilerParameters.cs
- ISFClipboardData.cs
- MULTI_QI.cs
- ExtentJoinTreeNode.cs
- Misc.cs
- ImageAutomationPeer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- HostDesigntimeLicenseContext.cs
- TrackingRecord.cs
- JavaScriptSerializer.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ObjectReaderCompiler.cs
- UnsafeNetInfoNativeMethods.cs
- ToolboxCategory.cs
- PairComparer.cs
- ObjectSet.cs
- Normalization.cs
- userdatakeys.cs
- Triangle.cs
- RuntimeIdentifierPropertyAttribute.cs
- CheckBoxList.cs
- XMLSchema.cs
- HttpServerVarsCollection.cs
- Item.cs