Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DecimalConverter.cs
- SrgsNameValueTag.cs
- HostingEnvironmentException.cs
- Crc32Helper.cs
- InputChannelAcceptor.cs
- ValueConversionAttribute.cs
- TransformGroup.cs
- TerminatingOperationBehavior.cs
- RegexFCD.cs
- ToolboxBitmapAttribute.cs
- MetadataUtil.cs
- InternalConfigEventArgs.cs
- DataSourceExpressionCollection.cs
- SpeechSynthesizer.cs
- ViewKeyConstraint.cs
- ProfilePropertySettingsCollection.cs
- PrePrepareMethodAttribute.cs
- SiteMapDataSourceView.cs
- Missing.cs
- ImageDrawing.cs
- OracleParameter.cs
- FileDialog_Vista_Interop.cs
- SamlAudienceRestrictionCondition.cs
- XmlSchemaType.cs
- SimpleMailWebEventProvider.cs
- XmlSerializationReader.cs
- RequestSecurityTokenSerializer.cs
- FocusChangedEventArgs.cs
- SpAudioStreamWrapper.cs
- InstanceKeyCollisionException.cs
- PermissionAttributes.cs
- HostedTcpTransportManager.cs
- XmlAttributeCache.cs
- IBuiltInEvidence.cs
- XmlElementAttribute.cs
- XsltCompileContext.cs
- ContentType.cs
- HostedHttpRequestAsyncResult.cs
- CalendarBlackoutDatesCollection.cs
- UIElement3D.cs
- WindowsTab.cs
- ByteArrayHelperWithString.cs
- ForeignConstraint.cs
- TransformProviderWrapper.cs
- Constants.cs
- Base64Decoder.cs
- BorderGapMaskConverter.cs
- HexParser.cs
- Literal.cs
- ProxyElement.cs
- DataGridAddNewRow.cs
- MetadataArtifactLoaderResource.cs
- IdentityNotMappedException.cs
- CorePropertiesFilter.cs
- XXXInfos.cs
- EpmAttributeNameBuilder.cs
- ObjectStorage.cs
- SchemaNotation.cs
- CodeTypeMember.cs
- DBConcurrencyException.cs
- DocumentGrid.cs
- LedgerEntry.cs
- CqlParserHelpers.cs
- ExpressionServices.cs
- TypeHelpers.cs
- DictionaryBase.cs
- ParallelEnumerableWrapper.cs
- ErrorStyle.cs
- PrinterResolution.cs
- RadialGradientBrush.cs
- DictionaryGlobals.cs
- Panel.cs
- FocusManager.cs
- MetadataArtifactLoaderResource.cs
- PhysicalFontFamily.cs
- OracleInternalConnection.cs
- TableStyle.cs
- IsolatedStorageFileStream.cs
- FixedSOMFixedBlock.cs
- TimelineClockCollection.cs
- GregorianCalendar.cs
- X509Certificate2Collection.cs
- ControlPropertyNameConverter.cs
- SettingsSavedEventArgs.cs
- WebPartActionVerb.cs
- DataGridViewColumnEventArgs.cs
- TableRowGroup.cs
- DocumentCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- ResponseStream.cs
- ModuleConfigurationInfo.cs
- QilDataSource.cs
- StrokeNodeData.cs
- cookiecollection.cs
- CommonProperties.cs
- ReadOnlyDataSourceView.cs
- XmlTextReader.cs
- RegexCharClass.cs
- MarginsConverter.cs
- SubMenuStyle.cs