Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ExeContext.cs / 1305376 / 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
- Int16AnimationUsingKeyFrames.cs
- ResourceDescriptionAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- Directory.cs
- SQLBytesStorage.cs
- Grid.cs
- SecurityProtocolCorrelationState.cs
- Vector3DAnimation.cs
- _ProxyChain.cs
- ToolTip.cs
- XmlSchemaType.cs
- ContextMenuStrip.cs
- SpecialTypeDataContract.cs
- MultiView.cs
- _LoggingObject.cs
- ContractsBCL.cs
- ObjectSet.cs
- Rotation3DAnimationBase.cs
- SyndicationFeedFormatter.cs
- DecimalAnimationBase.cs
- DocumentOrderQuery.cs
- TraceEventCache.cs
- IgnoreFileBuildProvider.cs
- Floater.cs
- X509Certificate2Collection.cs
- SerialErrors.cs
- Bold.cs
- ConditionalDesigner.cs
- OutputScopeManager.cs
- CodeDelegateCreateExpression.cs
- WebConfigurationFileMap.cs
- ProcessModelInfo.cs
- CodeAttributeDeclaration.cs
- ScriptDescriptor.cs
- PropertyGeneratedEventArgs.cs
- XmlValidatingReaderImpl.cs
- DrawingImage.cs
- DoubleAnimationBase.cs
- EntitySetDataBindingList.cs
- HttpInputStream.cs
- ConnectionConsumerAttribute.cs
- ButtonBaseAutomationPeer.cs
- RequestStatusBarUpdateEventArgs.cs
- FileDialogCustomPlace.cs
- TypeUsage.cs
- ResizeBehavior.cs
- TextRangeAdaptor.cs
- PersistenceParticipant.cs
- FindCriteriaCD1.cs
- ListenerChannelContext.cs
- AsyncOperationManager.cs
- SerializationInfoEnumerator.cs
- Random.cs
- XPathDocumentBuilder.cs
- PrintPageEvent.cs
- CodeCommentStatementCollection.cs
- StylusPointProperty.cs
- DesignerHelpers.cs
- XPathNodeIterator.cs
- XmlSchemaComplexType.cs
- BindingCollection.cs
- ErrorProvider.cs
- TextAdaptor.cs
- OracleBoolean.cs
- StylusButtonEventArgs.cs
- ExtensibleClassFactory.cs
- CompositeFontInfo.cs
- FontSource.cs
- DataGridViewHeaderCell.cs
- TypeName.cs
- ComplexType.cs
- WindowsSlider.cs
- TemplateField.cs
- ReferenceEqualityComparer.cs
- DataBindingHandlerAttribute.cs
- CacheDependency.cs
- SmtpClient.cs
- Table.cs
- LineServicesRun.cs
- BinarySerializer.cs
- PropertyIDSet.cs
- ObjectContextServiceProvider.cs
- MsmqBindingElementBase.cs
- GridToolTip.cs
- SafeCryptoHandles.cs
- StorageComplexPropertyMapping.cs
- ServicesExceptionNotHandledEventArgs.cs
- AttachedProperty.cs
- WebPartExportVerb.cs
- PrintPreviewGraphics.cs
- CodeTypeConstructor.cs
- SendKeys.cs
- XmlSignatureManifest.cs
- HandlerBase.cs
- WindowsListViewSubItem.cs
- WindowsClaimSet.cs
- BoundField.cs
- CustomWebEventKey.cs
- EmptyControlCollection.cs
- DbMetaDataFactory.cs