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
- SqlUdtInfo.cs
- MarkupExtensionReturnTypeAttribute.cs
- TemplatePropertyEntry.cs
- DesignerLabelAdapter.cs
- DataServiceRequest.cs
- EntityDesignerBuildProvider.cs
- DiscoveryDocumentSearchPattern.cs
- ChangeDirector.cs
- DataGridViewTextBoxColumn.cs
- FormsAuthentication.cs
- ImageField.cs
- SqlProcedureAttribute.cs
- RecordManager.cs
- WhitespaceRuleLookup.cs
- ChtmlTextWriter.cs
- ToolStripHighContrastRenderer.cs
- MarshalByRefObject.cs
- HTTPNotFoundHandler.cs
- RemotingConfiguration.cs
- ListBoxItemAutomationPeer.cs
- NativeMethods.cs
- HttpEncoderUtility.cs
- TransformValueSerializer.cs
- ItemCollectionEditor.cs
- DesignBindingValueUIHandler.cs
- FileDialog.cs
- ObjectMaterializedEventArgs.cs
- DocumentViewerConstants.cs
- CodePageUtils.cs
- Pkcs7Recipient.cs
- SqlCacheDependency.cs
- FixedSOMSemanticBox.cs
- NameService.cs
- Documentation.cs
- AsyncStreamReader.cs
- ListItemParagraph.cs
- DEREncoding.cs
- ToolboxComponentsCreatedEventArgs.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlEntityReference.cs
- SiteMapProvider.cs
- FormatterConverter.cs
- CacheMemory.cs
- StringTraceRecord.cs
- ShutDownListener.cs
- LinqDataSourceHelper.cs
- formatstringdialog.cs
- AttachedProperty.cs
- DesignerAttribute.cs
- Expression.DebuggerProxy.cs
- DrawingState.cs
- BindingMAnagerBase.cs
- SettingsPropertyValue.cs
- XsltConvert.cs
- ApplicationFileCodeDomTreeGenerator.cs
- IndexedString.cs
- StoreAnnotationsMap.cs
- TextBoxAutoCompleteSourceConverter.cs
- TextElementEnumerator.cs
- As.cs
- XslUrlEditor.cs
- PageAsyncTaskManager.cs
- DesignTimeType.cs
- EventBuilder.cs
- CuspData.cs
- MatrixKeyFrameCollection.cs
- XmlSchemaAnnotation.cs
- CompositeControl.cs
- Panel.cs
- BoolExpressionVisitors.cs
- SRGSCompiler.cs
- OdbcReferenceCollection.cs
- RegexNode.cs
- ExpressionLexer.cs
- DataKeyCollection.cs
- Site.cs
- PathFigureCollection.cs
- SpeechSynthesizer.cs
- SecurityContext.cs
- MetadataWorkspace.cs
- EntityDataSourceChangedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- Regex.cs
- ProcessThreadCollection.cs
- PropertyManager.cs
- SimpleApplicationHost.cs
- AddInAdapter.cs
- TrustManager.cs
- ServiceProviders.cs
- XmlSerializerFactory.cs
- ObjectDataSource.cs
- SkipStoryboardToFill.cs
- ScrollChrome.cs
- XmlCharacterData.cs
- TextMessageEncodingElement.cs
- objectquery_tresulttype.cs
- PersistChildrenAttribute.cs
- BaseDataBoundControl.cs
- TransformPatternIdentifiers.cs
- SoapSchemaExporter.cs