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
- OSFeature.cs
- XhtmlConformanceSection.cs
- Form.cs
- AdornerHitTestResult.cs
- CollectionContainer.cs
- DoubleLinkList.cs
- ProfilePropertySettingsCollection.cs
- xml.cs
- Guid.cs
- TraceSection.cs
- DrawingVisualDrawingContext.cs
- XmlSchemaSimpleContentRestriction.cs
- ConfigXmlCDataSection.cs
- BooleanProjectedSlot.cs
- RunInstallerAttribute.cs
- FormatException.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- httpserverutility.cs
- MethodCallConverter.cs
- Axis.cs
- RepeaterItemCollection.cs
- PageAsyncTask.cs
- WebPartConnectionsCloseVerb.cs
- CellConstantDomain.cs
- WebPartEditorOkVerb.cs
- XmlSchemaType.cs
- Part.cs
- safesecurityhelperavalon.cs
- TriState.cs
- BinaryObjectInfo.cs
- DispatcherFrame.cs
- SizeAnimationUsingKeyFrames.cs
- TouchFrameEventArgs.cs
- XmlNavigatorFilter.cs
- TextBoxBase.cs
- WorkerRequest.cs
- XmlDesigner.cs
- AppDomainAttributes.cs
- ZipIORawDataFileBlock.cs
- Thickness.cs
- FontFamilyConverter.cs
- WindowsRebar.cs
- RequestTimeoutManager.cs
- XhtmlBasicControlAdapter.cs
- TrustLevelCollection.cs
- ManagedWndProcTracker.cs
- AsyncWaitHandle.cs
- WebPartMenuStyle.cs
- TimeStampChecker.cs
- PropertyRef.cs
- PrintEvent.cs
- HtmlTableCell.cs
- DataObject.cs
- GPRECTF.cs
- assemblycache.cs
- PageSettings.cs
- DispatcherExceptionEventArgs.cs
- StateBag.cs
- ConstraintEnumerator.cs
- FileDataSourceCache.cs
- CodeSubDirectoriesCollection.cs
- PeerApplication.cs
- SqlRowUpdatingEvent.cs
- ObjectPersistData.cs
- RC2.cs
- URLAttribute.cs
- OneOf.cs
- DataGridViewCheckBoxColumn.cs
- TypeDescriptor.cs
- EncodingNLS.cs
- HideDisabledControlAdapter.cs
- SafeNativeMethodsMilCoreApi.cs
- ToolStripGripRenderEventArgs.cs
- PrimitiveType.cs
- Transform.cs
- PaginationProgressEventArgs.cs
- CompileLiteralTextParser.cs
- FormViewUpdateEventArgs.cs
- PointCollection.cs
- ReadWriteObjectLock.cs
- MD5CryptoServiceProvider.cs
- SR.Designer.cs
- XmlReaderSettings.cs
- SelectorItemAutomationPeer.cs
- AssociatedControlConverter.cs
- ReplyChannel.cs
- ValidatorCompatibilityHelper.cs
- DataServiceStreamProviderWrapper.cs
- SendActivityDesignerTheme.cs
- ValidationVisibilityAttribute.cs
- EventArgs.cs
- PackageStore.cs
- XmlSignificantWhitespace.cs
- TypeConverter.cs
- ObjectIDGenerator.cs
- Nullable.cs
- PropertyTab.cs
- TdsParser.cs
- ResponseStream.cs
- SqlProcedureAttribute.cs