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
- AttributeData.cs
- ChtmlTextBoxAdapter.cs
- SectionInput.cs
- GeneralTransform3DTo2DTo3D.cs
- SymDocumentType.cs
- OTFRasterizer.cs
- InternalConfigRoot.cs
- OwnerDrawPropertyBag.cs
- ProgressBarAutomationPeer.cs
- CancellationTokenRegistration.cs
- NetworkCredential.cs
- FontNameEditor.cs
- SingleAnimationUsingKeyFrames.cs
- CustomAttribute.cs
- DBConnectionString.cs
- UIPropertyMetadata.cs
- WorkflowDataContext.cs
- JavaScriptSerializer.cs
- DataSourceCollectionBase.cs
- UIElement3DAutomationPeer.cs
- WindowsToolbarItemAsMenuItem.cs
- Tuple.cs
- XPathChildIterator.cs
- FontStyle.cs
- Deflater.cs
- DataGridViewRowConverter.cs
- HostedElements.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SafeFileHandle.cs
- ToolStripItemDataObject.cs
- IRCollection.cs
- ToolStripSeparator.cs
- HealthMonitoringSection.cs
- pingexception.cs
- FixedHyperLink.cs
- Executor.cs
- PrinterResolution.cs
- IdleTimeoutMonitor.cs
- DesignOnlyAttribute.cs
- DeploymentSection.cs
- VariableExpressionConverter.cs
- DataServiceQueryException.cs
- StringSorter.cs
- LineSegment.cs
- TableCellsCollectionEditor.cs
- GridToolTip.cs
- log.cs
- InstanceCreationEditor.cs
- OutputCacheSection.cs
- DataGridViewTextBoxCell.cs
- x509utils.cs
- PartBasedPackageProperties.cs
- InstanceOwnerQueryResult.cs
- XmlStreamStore.cs
- HttpCacheParams.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RegexGroup.cs
- WorkflowQueue.cs
- FormClosedEvent.cs
- SyndicationDeserializer.cs
- BindingsCollection.cs
- WebDisplayNameAttribute.cs
- Parallel.cs
- ConfigurationElement.cs
- ConfigXmlText.cs
- HttpDebugHandler.cs
- ResXResourceSet.cs
- QuotedStringWriteStateInfo.cs
- PeerCustomResolverBindingElement.cs
- FrameAutomationPeer.cs
- ActivityCodeGenerator.cs
- SecurityUtils.cs
- SHA512Managed.cs
- TableLayoutSettingsTypeConverter.cs
- TabRenderer.cs
- CodeTypeMemberCollection.cs
- RuntimeHelpers.cs
- EntityContainer.cs
- Column.cs
- SupportsEventValidationAttribute.cs
- ObjectRef.cs
- FileClassifier.cs
- ProcessThread.cs
- SQLDecimalStorage.cs
- ToolTipAutomationPeer.cs
- WindowsFont.cs
- CLSCompliantAttribute.cs
- StringValidator.cs
- SortDescription.cs
- AdapterDictionary.cs
- ArrayList.cs
- TemplateNameScope.cs
- SpecialNameAttribute.cs
- StrongNameIdentityPermission.cs
- SocketConnection.cs
- SerializationException.cs
- CachedFontFace.cs
- SemanticBasicElement.cs
- TrackingCondition.cs
- HwndTarget.cs