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
- XPathBinder.cs
- StrokeCollectionDefaultValueFactory.cs
- IteratorDescriptor.cs
- SHA384Managed.cs
- PointAnimationUsingPath.cs
- Assert.cs
- ColumnClickEvent.cs
- FileUpload.cs
- Pair.cs
- DataSourceViewSchemaConverter.cs
- controlskin.cs
- ExtensionFile.cs
- SemaphoreFullException.cs
- DataRowCollection.cs
- TemplatePartAttribute.cs
- Vector3DCollection.cs
- mediaclock.cs
- ListViewGroupItemCollection.cs
- ListenUriMode.cs
- UpdateExpressionVisitor.cs
- LogLogRecordHeader.cs
- RequestUriProcessor.cs
- LambdaSerializationException.cs
- SoapCodeExporter.cs
- ScrollBarAutomationPeer.cs
- WorkflowItemPresenter.cs
- ECDiffieHellmanCng.cs
- FillErrorEventArgs.cs
- UrlRoutingHandler.cs
- UIElement3D.cs
- DatagridviewDisplayedBandsData.cs
- SmiConnection.cs
- ObjectSecurityT.cs
- RSACryptoServiceProvider.cs
- NotSupportedException.cs
- List.cs
- ObjectViewFactory.cs
- DataRowExtensions.cs
- DynamicArgumentDesigner.xaml.cs
- RequestBringIntoViewEventArgs.cs
- XamlTypeMapper.cs
- WSTransactionSection.cs
- PenThreadPool.cs
- XmlDownloadManager.cs
- PermissionSetEnumerator.cs
- ResourceSet.cs
- recordstate.cs
- HelpKeywordAttribute.cs
- XmlSchemaImport.cs
- TextServicesCompartmentEventSink.cs
- DetailsView.cs
- Int32.cs
- SafeNativeMethods.cs
- CollectionType.cs
- SqlTransaction.cs
- TagPrefixInfo.cs
- SqlPersonalizationProvider.cs
- ClaimTypes.cs
- FolderBrowserDialog.cs
- PropertyTabAttribute.cs
- ListViewGroupItemCollection.cs
- CustomCategoryAttribute.cs
- AssemblyHash.cs
- xsdvalidator.cs
- FormsAuthenticationConfiguration.cs
- EditorPartChrome.cs
- NCryptSafeHandles.cs
- SafeUserTokenHandle.cs
- TransactedBatchingElement.cs
- ZipPackagePart.cs
- ZoneMembershipCondition.cs
- ExpressionStringBuilder.cs
- WindowsButton.cs
- StorageConditionPropertyMapping.cs
- TableLayoutStyleCollection.cs
- TextBox.cs
- WriterOutput.cs
- FontEmbeddingManager.cs
- Variable.cs
- OutputCacheProfileCollection.cs
- ToolStripControlHost.cs
- XmlSchemaSubstitutionGroup.cs
- PasswordTextContainer.cs
- BinaryFormatterSinks.cs
- SplitterEvent.cs
- ProjectionPlanCompiler.cs
- WorkflowMarkupSerializer.cs
- TableDesigner.cs
- Transform3DCollection.cs
- ThrowHelper.cs
- ScriptingSectionGroup.cs
- ClrPerspective.cs
- DynamicResourceExtensionConverter.cs
- FtpCachePolicyElement.cs
- DBParameter.cs
- rsa.cs
- SelectionProviderWrapper.cs
- RegistryExceptionHelper.cs
- MenuBase.cs
- BaseHashHelper.cs