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
- XmlIgnoreAttribute.cs
- SqlUtils.cs
- DataDesignUtil.cs
- ProvidersHelper.cs
- BeginStoryboard.cs
- PropertyValueChangedEvent.cs
- UICuesEvent.cs
- Pointer.cs
- DateTimeOffsetStorage.cs
- DrawingCollection.cs
- HostedHttpContext.cs
- XPathNodeList.cs
- PrimitiveSchema.cs
- IDReferencePropertyAttribute.cs
- namescope.cs
- MarkupCompilePass2.cs
- EndpointDiscoveryMetadata.cs
- odbcmetadatafactory.cs
- SqlParameter.cs
- UriWriter.cs
- GroupStyle.cs
- MenuEventArgs.cs
- Timer.cs
- SqlDependencyListener.cs
- BidPrivateBase.cs
- Compress.cs
- ProfileModule.cs
- DataContext.cs
- TimeSpanConverter.cs
- Run.cs
- BookmarkScopeHandle.cs
- entityreference_tresulttype.cs
- ProtocolViolationException.cs
- AuthenticateEventArgs.cs
- ReturnType.cs
- DataGridViewTopLeftHeaderCell.cs
- PersonalizationProvider.cs
- TemplateBindingExtension.cs
- SqlGatherConsumedAliases.cs
- StrokeNodeData.cs
- CaseCqlBlock.cs
- CustomError.cs
- XmlNodeComparer.cs
- cookieexception.cs
- KeyFrames.cs
- NotifyCollectionChangedEventArgs.cs
- Scalars.cs
- invalidudtexception.cs
- TextContainerHelper.cs
- XmlNode.cs
- EntryPointNotFoundException.cs
- DuplicateWaitObjectException.cs
- SHA256Managed.cs
- SynchronizedChannelCollection.cs
- DetailsView.cs
- ElementMarkupObject.cs
- GenericAuthenticationEventArgs.cs
- TemplateControlBuildProvider.cs
- WebControlAdapter.cs
- DiscoveryExceptionDictionary.cs
- FolderBrowserDialog.cs
- TransformerTypeCollection.cs
- HostingEnvironmentException.cs
- JsonServiceDocumentSerializer.cs
- COAUTHINFO.cs
- _emptywebproxy.cs
- PrivacyNoticeElement.cs
- DataContractSet.cs
- Quaternion.cs
- MemberCollection.cs
- ExtentCqlBlock.cs
- DrawingGroupDrawingContext.cs
- XmlMapping.cs
- ADConnectionHelper.cs
- InputBuffer.cs
- Stackframe.cs
- StringUtil.cs
- SamlConstants.cs
- AssemblyHash.cs
- XmlSchemaExporter.cs
- DesignerDataStoredProcedure.cs
- ProxyElement.cs
- ItemsControl.cs
- SchemaMapping.cs
- RewritingSimplifier.cs
- QueryCacheEntry.cs
- URLIdentityPermission.cs
- XmlDataLoader.cs
- HandoffBehavior.cs
- XmlILCommand.cs
- DragDrop.cs
- ExclusiveTcpTransportManager.cs
- Directory.cs
- VersionedStreamOwner.cs
- LogicalTreeHelper.cs
- ProviderIncompatibleException.cs
- EntityClientCacheKey.cs
- SafeCryptoHandles.cs
- CompiledQuery.cs
- base64Transforms.cs