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
- DocumentXPathNavigator.cs
- OrderedParallelQuery.cs
- SearchForVirtualItemEventArgs.cs
- SqlDataSourceConnectionPanel.cs
- CodeStatementCollection.cs
- TextEditorCharacters.cs
- activationcontext.cs
- Dispatcher.cs
- ClientApiGenerator.cs
- _TLSstream.cs
- EpmAttributeNameBuilder.cs
- Animatable.cs
- UIElementParaClient.cs
- AppDomainShutdownMonitor.cs
- ResourceReferenceKeyNotFoundException.cs
- NumericExpr.cs
- ControlBuilder.cs
- BCLDebug.cs
- MultiTrigger.cs
- BasePropertyDescriptor.cs
- FragmentQueryKB.cs
- WindowsMenu.cs
- ProtectedConfiguration.cs
- FieldToken.cs
- XmlRootAttribute.cs
- ColumnTypeConverter.cs
- UIElementAutomationPeer.cs
- ParseChildrenAsPropertiesAttribute.cs
- Tokenizer.cs
- DesignerLinkAdapter.cs
- HotSpotCollection.cs
- ExpressionEditorAttribute.cs
- Socket.cs
- nulltextnavigator.cs
- PartialCachingAttribute.cs
- RequestNavigateEventArgs.cs
- FontStretches.cs
- SingleStorage.cs
- RepeaterCommandEventArgs.cs
- OracleDataReader.cs
- BeginCreateSecurityTokenRequest.cs
- Missing.cs
- TableLayoutColumnStyleCollection.cs
- PatternMatcher.cs
- PartBasedPackageProperties.cs
- AttachedPropertyBrowsableAttribute.cs
- DbDataRecord.cs
- ServiceObjectContainer.cs
- ExpressionBuilderCollection.cs
- MetadataSerializer.cs
- KeyConstraint.cs
- FastPropertyAccessor.cs
- TraceHwndHost.cs
- ExceptionUtil.cs
- DataGridTableCollection.cs
- SpStreamWrapper.cs
- RangeContentEnumerator.cs
- CodeDOMUtility.cs
- PageCodeDomTreeGenerator.cs
- EntityConnection.cs
- Path.cs
- UIElementCollection.cs
- Condition.cs
- CursorConverter.cs
- BitmapFrameDecode.cs
- BitmapEffectRenderDataResource.cs
- BookmarkScopeInfo.cs
- DataControlImageButton.cs
- MouseGestureConverter.cs
- HostProtectionPermission.cs
- Activity.cs
- SafeNativeMethods.cs
- OutputCacheProfileCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- StateFinalizationDesigner.cs
- ContractAdapter.cs
- TimeSpanStorage.cs
- webproxy.cs
- ReachPageContentCollectionSerializer.cs
- DbParameterCollectionHelper.cs
- PersonalizationStateQuery.cs
- PartBasedPackageProperties.cs
- RadioButtonRenderer.cs
- storepermissionattribute.cs
- QueryHandler.cs
- ClientTarget.cs
- ListenerElementsCollection.cs
- Endpoint.cs
- DictionaryKeyPropertyAttribute.cs
- SystemIcons.cs
- ScaleTransform3D.cs
- ConnectionManagementElement.cs
- SessionParameter.cs
- SoapFormatExtensions.cs
- CookielessHelper.cs
- RowUpdatedEventArgs.cs
- ShellProvider.cs
- Brush.cs
- RepeaterItem.cs
- TrackingWorkflowEventArgs.cs