Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CategoryNameCollection.cs
- DelegateArgumentValue.cs
- HtmlGenericControl.cs
- DesignerLinkAdapter.cs
- InternalDispatchObject.cs
- PersonalizationStateInfoCollection.cs
- DataRecord.cs
- WindowsFormsSynchronizationContext.cs
- GenerateTemporaryTargetAssembly.cs
- CursorInteropHelper.cs
- ConsumerConnectionPoint.cs
- WaitHandle.cs
- DataControlFieldCell.cs
- SqlCachedBuffer.cs
- Utilities.cs
- PrintDialogException.cs
- PerformanceCounterPermission.cs
- DataMisalignedException.cs
- TreeViewCancelEvent.cs
- FamilyMap.cs
- FileDetails.cs
- Point3DAnimationBase.cs
- ToolboxItem.cs
- SessionEndedEventArgs.cs
- RtfToken.cs
- FontFaceLayoutInfo.cs
- RIPEMD160Managed.cs
- CompressedStack.cs
- ConcurrentQueue.cs
- QuerySubExprEliminator.cs
- WorkflowNamespace.cs
- SchemaCreator.cs
- Icon.cs
- NotSupportedException.cs
- PrincipalPermission.cs
- ClientFormsIdentity.cs
- CancellationHandlerDesigner.cs
- Table.cs
- TextElement.cs
- RewritingSimplifier.cs
- BuilderPropertyEntry.cs
- QueryReaderSettings.cs
- exports.cs
- MaxValueConverter.cs
- DataGridViewCellLinkedList.cs
- ArraySegment.cs
- TypeListConverter.cs
- InspectionWorker.cs
- MenuAdapter.cs
- MappingItemCollection.cs
- _ProxyChain.cs
- DataObjectPastingEventArgs.cs
- TextFormatter.cs
- HeaderUtility.cs
- HyperLinkField.cs
- DashStyle.cs
- XmlSchemaValidator.cs
- FileUtil.cs
- ObjectItemCollection.cs
- EncodingConverter.cs
- ListBase.cs
- BrowserCapabilitiesCodeGenerator.cs
- EditingCommands.cs
- SvcMapFileLoader.cs
- ListItemCollection.cs
- MessageSecurityVersionConverter.cs
- DataGridViewComboBoxColumn.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DateTimeParse.cs
- MediaPlayer.cs
- CapabilitiesAssignment.cs
- Figure.cs
- RemoveStoryboard.cs
- EntityObject.cs
- ReadOnlyMetadataCollection.cs
- ImportOptions.cs
- SourceInterpreter.cs
- XamlToRtfParser.cs
- DataGridViewCellPaintingEventArgs.cs
- XmlElementList.cs
- SpeechAudioFormatInfo.cs
- CustomErrorsSection.cs
- TransactionProtocolConverter.cs
- ToolStripActionList.cs
- CriticalHandle.cs
- ResourceSet.cs
- EnumCodeDomSerializer.cs
- EnvelopedPkcs7.cs
- ActivationArguments.cs
- KnownTypesHelper.cs
- EncryptedReference.cs
- TextEndOfParagraph.cs
- PackWebRequestFactory.cs
- RotateTransform.cs
- XmlDataProvider.cs
- DesignTableCollection.cs
- ZoneMembershipCondition.cs
- EntityProviderServices.cs
- TableLayout.cs
- EventBindingService.cs