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
- HtmlImage.cs
- HostingEnvironment.cs
- EFColumnProvider.cs
- ProjectionCamera.cs
- SortedList.cs
- BindingParameterCollection.cs
- MorphHelper.cs
- DodSequenceMerge.cs
- ToolTipAutomationPeer.cs
- Misc.cs
- Speller.cs
- GridViewHeaderRowPresenter.cs
- SerialPinChanges.cs
- ElementMarkupObject.cs
- ProviderConnectionPoint.cs
- CreateUserErrorEventArgs.cs
- ObjectDataProvider.cs
- IconBitmapDecoder.cs
- WebControlParameterProxy.cs
- CroppedBitmap.cs
- ApplicationInfo.cs
- Viewport2DVisual3D.cs
- D3DImage.cs
- XmlKeywords.cs
- AdditionalEntityFunctions.cs
- WebServiceTypeData.cs
- DownloadProgressEventArgs.cs
- CurrentTimeZone.cs
- BmpBitmapDecoder.cs
- TimeIntervalCollection.cs
- EntityModelBuildProvider.cs
- SqlMethodCallConverter.cs
- XPathParser.cs
- WebPartHelpVerb.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SchemaImporterExtensionsSection.cs
- MethodMessage.cs
- ControlAdapter.cs
- InternalResources.cs
- SafeFileMapViewHandle.cs
- HtmlTableRow.cs
- TypeDependencyAttribute.cs
- CounterSample.cs
- ButtonBaseAdapter.cs
- LabelTarget.cs
- ThemeConfigurationDialog.cs
- OpenFileDialog.cs
- ManagementExtension.cs
- SecureConversationServiceElement.cs
- IfAction.cs
- ImageInfo.cs
- WebPartDisplayMode.cs
- TableLayoutSettings.cs
- Propagator.Evaluator.cs
- TemplateXamlParser.cs
- XmlNavigatorFilter.cs
- exports.cs
- GeneralTransform3DGroup.cs
- WebScriptServiceHostFactory.cs
- HtmlInputControl.cs
- WebControlParameterProxy.cs
- Int32AnimationUsingKeyFrames.cs
- WpfGeneratedKnownTypes.cs
- TypeGeneratedEventArgs.cs
- KeySplineConverter.cs
- ModelMemberCollection.cs
- RowType.cs
- TrackingMemoryStream.cs
- LoginView.cs
- ClipboardData.cs
- FileReservationCollection.cs
- BufferBuilder.cs
- GACMembershipCondition.cs
- ComEventsMethod.cs
- PopupRootAutomationPeer.cs
- FastEncoderWindow.cs
- EntityDataSourceWrapperCollection.cs
- NodeLabelEditEvent.cs
- CodeTypeReference.cs
- ActivityDesignerResources.cs
- EntityDesignerDataSourceView.cs
- FontSourceCollection.cs
- DisplayMemberTemplateSelector.cs
- RangeValidator.cs
- StaticFileHandler.cs
- MediaEntryAttribute.cs
- TextDocumentView.cs
- BatchServiceHost.cs
- NativeMethods.cs
- UnsafeNativeMethodsTablet.cs
- Native.cs
- CalendarDay.cs
- ManagementObjectCollection.cs
- LogWriteRestartAreaState.cs
- IODescriptionAttribute.cs
- RequestCacheEntry.cs
- TextCompositionEventArgs.cs
- MultipleViewPattern.cs
- SafeNativeMethods.cs
- JsonReaderWriterFactory.cs