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
- OciLobLocator.cs
- AnnotationResourceChangedEventArgs.cs
- ADMembershipProvider.cs
- StringUtil.cs
- HtmlTable.cs
- Vector3DCollectionValueSerializer.cs
- SQLMoney.cs
- objectresult_tresulttype.cs
- InstanceBehavior.cs
- ContentControl.cs
- ProfileEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- HwndKeyboardInputProvider.cs
- SecurityState.cs
- LineInfo.cs
- RectAnimationBase.cs
- Configuration.cs
- Thread.cs
- XPathSelfQuery.cs
- EdmPropertyAttribute.cs
- DataListItemEventArgs.cs
- PathSegmentCollection.cs
- FormViewPageEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- StylusPointCollection.cs
- LinkedList.cs
- UnaryNode.cs
- Unit.cs
- BridgeDataReader.cs
- RequestQueue.cs
- ButtonChrome.cs
- TabPage.cs
- String.cs
- PopupRootAutomationPeer.cs
- ListViewTableCell.cs
- DiagnosticsElement.cs
- SettingsPropertyValueCollection.cs
- FieldMetadata.cs
- ServicePointManagerElement.cs
- Permission.cs
- FlowDocumentReaderAutomationPeer.cs
- SettingsAttributeDictionary.cs
- Parameter.cs
- BuildProviderAppliesToAttribute.cs
- PrincipalPermission.cs
- PeerPresenceInfo.cs
- WebPartConnectionsCloseVerb.cs
- ParserStreamGeometryContext.cs
- DbDataRecord.cs
- ResourceContainer.cs
- MenuItemAutomationPeer.cs
- LocatorManager.cs
- ReflectionUtil.cs
- IImplicitResourceProvider.cs
- DocumentGrid.cs
- HitTestWithPointDrawingContextWalker.cs
- UpdateManifestForBrowserApplication.cs
- DataGridViewButtonCell.cs
- MD5.cs
- RangeEnumerable.cs
- CompilerResults.cs
- IpcClientManager.cs
- WebPartVerb.cs
- SupportingTokenBindingElement.cs
- FacetChecker.cs
- ImageBrush.cs
- DetailsViewDeleteEventArgs.cs
- SettingsSection.cs
- ObjectKeyFrameCollection.cs
- InvalidFilterCriteriaException.cs
- UnionCodeGroup.cs
- PersonalizationState.cs
- ImageDesigner.cs
- Table.cs
- ControlUtil.cs
- HostProtectionException.cs
- SkewTransform.cs
- SettingsAttributes.cs
- DispatcherProcessingDisabled.cs
- ConnectionPointGlyph.cs
- DesignerCategoryAttribute.cs
- Win32.cs
- EventManager.cs
- GuidelineSet.cs
- XmlQueryTypeFactory.cs
- HeaderCollection.cs
- MarkupCompiler.cs
- DataGridComboBoxColumn.cs
- SamlAuthorizationDecisionClaimResource.cs
- smtpconnection.cs
- ShaperBuffers.cs
- ExpressionConverter.cs
- LeftCellWrapper.cs
- FacetValueContainer.cs
- AQNBuilder.cs
- RemotingAttributes.cs
- PerformanceCounterPermissionAttribute.cs
- DataGridView.cs
- PreviousTrackingServiceAttribute.cs
- ExceptionTrace.cs