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
- EntityWrapper.cs
- SizeLimitedCache.cs
- safex509handles.cs
- CodeExpressionRuleDeclaration.cs
- __Filters.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PartialCachingAttribute.cs
- TypedTableBase.cs
- NullableBoolConverter.cs
- unsafeIndexingFilterStream.cs
- SQLByte.cs
- ListItemCollection.cs
- PropertyGridCommands.cs
- Stack.cs
- PathStreamGeometryContext.cs
- IndicFontClient.cs
- AliasedSlot.cs
- PropertyKey.cs
- NavigationWindowAutomationPeer.cs
- clipboard.cs
- JsonObjectDataContract.cs
- AmbientValueAttribute.cs
- AssemblyAttributes.cs
- MetafileHeaderEmf.cs
- XmlTypeMapping.cs
- Validator.cs
- WebPartEditorCancelVerb.cs
- UserControlCodeDomTreeGenerator.cs
- DbgUtil.cs
- InputBinding.cs
- StyleModeStack.cs
- StreamingContext.cs
- BaseTemplateBuildProvider.cs
- _PooledStream.cs
- ParamArrayAttribute.cs
- FullTextBreakpoint.cs
- WebPartManagerInternals.cs
- TemplateXamlParser.cs
- Schema.cs
- OutgoingWebResponseContext.cs
- DataColumnCollection.cs
- Assembly.cs
- HighContrastHelper.cs
- Encoding.cs
- NullableIntMinMaxAggregationOperator.cs
- HashCoreRequest.cs
- BitmapEffectInputData.cs
- Relationship.cs
- metadatamappinghashervisitor.cs
- Evaluator.cs
- TimeSpan.cs
- Expander.cs
- HttpsChannelListener.cs
- PrimitiveXmlSerializers.cs
- SimpleWebHandlerParser.cs
- StandardCommands.cs
- DetailsViewUpdateEventArgs.cs
- TypedDataSetSchemaImporterExtension.cs
- SocketManager.cs
- PathSegment.cs
- DependencyProperty.cs
- RequestSecurityTokenSerializer.cs
- DataBindingExpressionBuilder.cs
- Pool.cs
- HierarchicalDataSourceControl.cs
- ScopedMessagePartSpecification.cs
- ThreadInterruptedException.cs
- IconBitmapDecoder.cs
- InternalCache.cs
- DataGridPreparingCellForEditEventArgs.cs
- DragDrop.cs
- LinkedResource.cs
- HScrollProperties.cs
- FtpWebRequest.cs
- FormatterConverter.cs
- TrustManagerMoreInformation.cs
- PolyQuadraticBezierSegment.cs
- SendKeys.cs
- SqlCacheDependencyDatabaseCollection.cs
- TableLayoutColumnStyleCollection.cs
- DockAndAnchorLayout.cs
- ButtonFlatAdapter.cs
- parserscommon.cs
- TextTrailingCharacterEllipsis.cs
- ServicePointManagerElement.cs
- BrowsableAttribute.cs
- StateMachineSubscription.cs
- BitVector32.cs
- SourceElementsCollection.cs
- HebrewCalendar.cs
- NativeMethods.cs
- FakeModelPropertyImpl.cs
- ManagementObject.cs
- COM2PropertyDescriptor.cs
- AlignmentYValidation.cs
- BrowsableAttribute.cs
- TriggerAction.cs
- PeerNameResolver.cs
- DbSetClause.cs
- CompatibleComparer.cs