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
- DatatypeImplementation.cs
- AuthenticateEventArgs.cs
- PerformanceCounterPermissionEntry.cs
- SectionUpdates.cs
- PreviewKeyDownEventArgs.cs
- SortedDictionary.cs
- DBSqlParserColumn.cs
- TableRow.cs
- UnauthorizedAccessException.cs
- ApplicationContext.cs
- RequiredFieldValidator.cs
- FrugalList.cs
- ImageBrush.cs
- DbQueryCommandTree.cs
- CommandField.cs
- SQLGuid.cs
- DataPagerFieldCollection.cs
- FileDialogCustomPlacesCollection.cs
- XmlDataSourceNodeDescriptor.cs
- Scripts.cs
- TemplateNodeContextMenu.cs
- SHA1Managed.cs
- IssuedTokensHeader.cs
- Funcletizer.cs
- TaskFormBase.cs
- LockCookie.cs
- HttpCapabilitiesBase.cs
- ListSortDescriptionCollection.cs
- MetadataUtil.cs
- SQLUtility.cs
- UntypedNullExpression.cs
- HttpException.cs
- ClipboardData.cs
- HttpCookieCollection.cs
- WebPartManagerInternals.cs
- odbcmetadatacollectionnames.cs
- PerfCounterSection.cs
- MimeXmlReflector.cs
- DataBinding.cs
- UnSafeCharBuffer.cs
- SynchronizedRandom.cs
- RotateTransform.cs
- Transform3DGroup.cs
- PeerResolverElement.cs
- InkPresenter.cs
- ScrollProperties.cs
- NameHandler.cs
- ToolStripItemRenderEventArgs.cs
- AnnotationDocumentPaginator.cs
- ProtocolReflector.cs
- WebPartConnectionsConfigureVerb.cs
- AuthorizationContext.cs
- hresults.cs
- EventLogConfiguration.cs
- ToolStripItemImageRenderEventArgs.cs
- DependentList.cs
- SystemIPv4InterfaceProperties.cs
- ScriptMethodAttribute.cs
- LineGeometry.cs
- BoolExpressionVisitors.cs
- ModuleElement.cs
- ResponseBodyWriter.cs
- Axis.cs
- ProtocolsConfigurationHandler.cs
- PrintDialog.cs
- WebSysDefaultValueAttribute.cs
- SqlServer2KCompatibilityCheck.cs
- UriParserTemplates.cs
- FileFormatException.cs
- ToolStripAdornerWindowService.cs
- Header.cs
- DBSchemaRow.cs
- Math.cs
- FrameworkPropertyMetadata.cs
- ComponentChangedEvent.cs
- GroupBoxRenderer.cs
- ListBox.cs
- UntrustedRecipientException.cs
- SoapReflectionImporter.cs
- DocumentOrderQuery.cs
- CodeTypeConstructor.cs
- NullReferenceException.cs
- SmiTypedGetterSetter.cs
- UdpTransportSettingsElement.cs
- SessionKeyExpiredException.cs
- PropertyCollection.cs
- Stylus.cs
- DataControlFieldCell.cs
- NamedPipeConnectionPoolSettings.cs
- SBCSCodePageEncoding.cs
- BrushValueSerializer.cs
- DataGridAutomationPeer.cs
- PeerPresenceInfo.cs
- MediaCommands.cs
- BevelBitmapEffect.cs
- AuthorizationRule.cs
- BamlRecordReader.cs
- Underline.cs
- WeakEventManager.cs
- ProfileManager.cs