Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataServiceStreamResponse.cs
- AutomationPropertyInfo.cs
- WebServiceHost.cs
- SmtpNtlmAuthenticationModule.cs
- CodeAccessPermission.cs
- ConnectionStringsExpressionBuilder.cs
- PackageDigitalSignatureManager.cs
- EditingMode.cs
- HtmlTextBoxAdapter.cs
- EventItfInfo.cs
- XmlBinaryReader.cs
- DesignerSerializationManager.cs
- FontNamesConverter.cs
- EditorPartCollection.cs
- SingleStorage.cs
- BitmapEffectGroup.cs
- RtfControls.cs
- RadioButtonBaseAdapter.cs
- DataGridColumnStyleMappingNameEditor.cs
- HostExecutionContextManager.cs
- PageParser.cs
- ScrollContentPresenter.cs
- EventQueueState.cs
- HttpApplication.cs
- FlowDocument.cs
- FlowPosition.cs
- ScriptingSectionGroup.cs
- ChangeProcessor.cs
- CompareInfo.cs
- XsltLoader.cs
- DbParameterHelper.cs
- VideoDrawing.cs
- Imaging.cs
- ButtonColumn.cs
- HttpStreamXmlDictionaryReader.cs
- DoubleAnimationClockResource.cs
- AstTree.cs
- NTAccount.cs
- UserControlAutomationPeer.cs
- ViewManager.cs
- fixedPageContentExtractor.cs
- ParseChildrenAsPropertiesAttribute.cs
- ResponseStream.cs
- Wrapper.cs
- ASCIIEncoding.cs
- XmlSchemaGroupRef.cs
- DbBuffer.cs
- TransactionFlowAttribute.cs
- DbExpressionVisitor.cs
- ConstrainedDataObject.cs
- DataSourceUtil.cs
- StringDictionaryEditor.cs
- ViewManager.cs
- CrossAppDomainChannel.cs
- Activator.cs
- DiffuseMaterial.cs
- LingerOption.cs
- FormatVersion.cs
- PerformanceCounterPermissionEntryCollection.cs
- DataPagerField.cs
- MetadataStore.cs
- EventItfInfo.cs
- XmlTextReaderImplHelpers.cs
- CustomMenuItemCollection.cs
- CacheSection.cs
- Attachment.cs
- columnmapfactory.cs
- GeneralTransform.cs
- ValidatorCompatibilityHelper.cs
- UriSection.cs
- ThicknessAnimationUsingKeyFrames.cs
- BindingContext.cs
- DefaultEventAttribute.cs
- BufferedReadStream.cs
- TypedTableBase.cs
- StateMachineSubscription.cs
- OperationParameterInfoCollection.cs
- CssTextWriter.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ModelUIElement3D.cs
- RegexMatchCollection.cs
- RoleManagerSection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WorkflowViewStateService.cs
- GeometryModel3D.cs
- ConnectionStringsSection.cs
- EdmToObjectNamespaceMap.cs
- _Win32.cs
- entitydatasourceentitysetnameconverter.cs
- FunctionOverloadResolver.cs
- MediaContext.cs
- ChangeTracker.cs
- UnsignedPublishLicense.cs
- SimpleRecyclingCache.cs
- EtwTrace.cs
- SmtpAuthenticationManager.cs
- InputChannel.cs
- SystemResourceKey.cs
- PackageDigitalSignatureManager.cs
- PropertyGridView.cs