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
- TranslateTransform3D.cs
- SafeLibraryHandle.cs
- OperationInfo.cs
- SqlInternalConnectionTds.cs
- DashStyle.cs
- CompilerErrorCollection.cs
- SecurityPermission.cs
- Html32TextWriter.cs
- StringFunctions.cs
- SystemResourceHost.cs
- ToolStripOverflow.cs
- SetIndexBinder.cs
- XmlILModule.cs
- StorageBasedPackageProperties.cs
- PathData.cs
- VisualStyleInformation.cs
- ItemType.cs
- WinHttpWebProxyFinder.cs
- LayoutEngine.cs
- ButtonColumn.cs
- BindingSourceDesigner.cs
- UIElement.cs
- PathData.cs
- DataGridViewRowHeaderCell.cs
- LicenseException.cs
- ReadOnlyNameValueCollection.cs
- EnumMember.cs
- ExeContext.cs
- PageHandlerFactory.cs
- SoapElementAttribute.cs
- ContentFileHelper.cs
- SoapInteropTypes.cs
- ObjectAnimationBase.cs
- _DigestClient.cs
- AsnEncodedData.cs
- Attributes.cs
- GatewayIPAddressInformationCollection.cs
- DocumentGridPage.cs
- AppModelKnownContentFactory.cs
- DbConnectionPool.cs
- Camera.cs
- DBBindings.cs
- UpdateManifestForBrowserApplication.cs
- PropertyChangedEventManager.cs
- HierarchicalDataBoundControl.cs
- DesignerToolStripControlHost.cs
- Transform3DCollection.cs
- EntityTransaction.cs
- ClientUIRequest.cs
- CustomGrammar.cs
- MimeBasePart.cs
- ConfigurationLockCollection.cs
- AdornerPresentationContext.cs
- Paragraph.cs
- UnmanagedBitmapWrapper.cs
- XmlSchemaAttribute.cs
- UnitySerializationHolder.cs
- ActivationArguments.cs
- Scripts.cs
- JumpPath.cs
- SecurityManager.cs
- MdImport.cs
- BasicBrowserDialog.cs
- ListBindingHelper.cs
- WebConfigurationHost.cs
- EnumDataContract.cs
- _Events.cs
- ActionMessageFilterTable.cs
- ConstrainedDataObject.cs
- NativeMethods.cs
- ListViewTableRow.cs
- HandleCollector.cs
- MulticastOption.cs
- LayoutManager.cs
- HostingEnvironmentException.cs
- NamedPipeHostedTransportConfiguration.cs
- ComProxy.cs
- FamilyMap.cs
- UIInitializationException.cs
- ColorKeyFrameCollection.cs
- LinkDescriptor.cs
- QilChoice.cs
- CodePropertyReferenceExpression.cs
- XmlCollation.cs
- TextProperties.cs
- EntityParameterCollection.cs
- RemotingAttributes.cs
- RulePatternOps.cs
- DataControlFieldCollection.cs
- ObjectConverter.cs
- DataListItemCollection.cs
- MethodImplAttribute.cs
- ReflectionHelper.cs
- SelectionRangeConverter.cs
- HashLookup.cs
- StringSorter.cs
- XmlEventCache.cs
- SoapAttributes.cs
- ReplyAdapterChannelListener.cs
- ConfigurationElementCollection.cs