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
- BitmapEffectInputData.cs
- DiscoveryClientChannelFactory.cs
- DeadCharTextComposition.cs
- UriScheme.cs
- SafeLibraryHandle.cs
- NetTcpBindingCollectionElement.cs
- Binding.cs
- TextModifierScope.cs
- Base64Stream.cs
- FormViewUpdatedEventArgs.cs
- WCFBuildProvider.cs
- DrawingImage.cs
- FixedSOMGroup.cs
- xsdvalidator.cs
- OracleCommand.cs
- TypeUtils.cs
- PropertyEntry.cs
- DynamicILGenerator.cs
- WebContext.cs
- HttpHeaderCollection.cs
- ExpressionPrinter.cs
- TextElementEnumerator.cs
- NameSpaceExtractor.cs
- TextElementCollectionHelper.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PagePropertiesChangingEventArgs.cs
- DataGridViewImageColumn.cs
- Decimal.cs
- TextOnlyOutput.cs
- OdbcConnectionString.cs
- NamespaceListProperty.cs
- CharacterBufferReference.cs
- ColumnWidthChangedEvent.cs
- UserInitiatedNavigationPermission.cs
- CodeCompiler.cs
- DesignTimeDataBinding.cs
- RelativeSource.cs
- LineBreakRecord.cs
- TransactionCache.cs
- ManualWorkflowSchedulerService.cs
- ProtocolViolationException.cs
- CodeStatement.cs
- SafeNativeMethods.cs
- TraceRecord.cs
- ParameterCollection.cs
- SafeBitVector32.cs
- PointAnimationBase.cs
- NonPrimarySelectionGlyph.cs
- CurrencyManager.cs
- UpdatePanel.cs
- PropertyPathConverter.cs
- PagerStyle.cs
- GenericIdentity.cs
- DeviceSpecific.cs
- SqlRemoveConstantOrderBy.cs
- ContextQuery.cs
- Package.cs
- ViewValidator.cs
- OdbcParameterCollection.cs
- StreamAsIStream.cs
- _SingleItemRequestCache.cs
- Size3DValueSerializer.cs
- PersonalizationStateQuery.cs
- Scheduler.cs
- Int16Converter.cs
- XmlComment.cs
- FirewallWrapper.cs
- PageContentCollection.cs
- NumberEdit.cs
- UserControlAutomationPeer.cs
- TabletCollection.cs
- WaveHeader.cs
- ArcSegment.cs
- StoreItemCollection.cs
- Renderer.cs
- WithParamAction.cs
- _ScatterGatherBuffers.cs
- RegionInfo.cs
- propertytag.cs
- SettingsPropertyNotFoundException.cs
- InheritanceUI.cs
- TypeConverterHelper.cs
- CatalogPartCollection.cs
- FixedSOMLineRanges.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- ListDesigner.cs
- MultiSelectRootGridEntry.cs
- MetaForeignKeyColumn.cs
- PenCursorManager.cs
- Application.cs
- InheritanceContextHelper.cs
- StringArrayConverter.cs
- DesignerObject.cs
- FixedPageAutomationPeer.cs
- PageEventArgs.cs
- Stack.cs
- NonBatchDirectoryCompiler.cs
- DocumentReference.cs
- FullTextLine.cs
- PrinterSettings.cs