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
- SmiConnection.cs
- HostTimeoutsElement.cs
- FormsAuthenticationModule.cs
- TypeInformation.cs
- SourceChangedEventArgs.cs
- TextTreeTextBlock.cs
- SmtpNegotiateAuthenticationModule.cs
- Partitioner.cs
- GeometryModel3D.cs
- AttributeCollection.cs
- ImageMetadata.cs
- StatusBarDrawItemEvent.cs
- precedingquery.cs
- StylusButtonCollection.cs
- EntityCommand.cs
- ProxyHelper.cs
- EditorAttribute.cs
- VisualTreeUtils.cs
- PathFigureCollection.cs
- GorillaCodec.cs
- Compilation.cs
- ColorConvertedBitmap.cs
- PrintPageEvent.cs
- DetailsViewRow.cs
- StaticDataManager.cs
- Stylesheet.cs
- _NestedSingleAsyncResult.cs
- DragDropHelper.cs
- LabelLiteral.cs
- Splitter.cs
- Polygon.cs
- PathStreamGeometryContext.cs
- ColumnResizeAdorner.cs
- StateInitialization.cs
- ToolStripPanelCell.cs
- ComIntegrationManifestGenerator.cs
- PageEventArgs.cs
- OracleCommandBuilder.cs
- WebErrorHandler.cs
- OneOfConst.cs
- SplineKeyFrames.cs
- BindingFormattingDialog.cs
- XmlSchemaProviderAttribute.cs
- BrushMappingModeValidation.cs
- LoadRetryHandler.cs
- KeyedQueue.cs
- SqlConnectionString.cs
- AndMessageFilterTable.cs
- HttpCookieCollection.cs
- WebPartDisplayModeEventArgs.cs
- ListViewHitTestInfo.cs
- SoapHeaders.cs
- XsdDataContractExporter.cs
- PngBitmapDecoder.cs
- TextEditorThreadLocalStore.cs
- SqlNodeAnnotations.cs
- AddingNewEventArgs.cs
- MailMessageEventArgs.cs
- TreeView.cs
- WinInet.cs
- NameValuePermission.cs
- Int32Rect.cs
- CompositeTypefaceMetrics.cs
- RowSpanVector.cs
- TemplateControlCodeDomTreeGenerator.cs
- Vector3DCollection.cs
- ExtendedPropertyInfo.cs
- UnsafeNativeMethods.cs
- Site.cs
- assertwrapper.cs
- ProfileProvider.cs
- JulianCalendar.cs
- AuthenticationServiceManager.cs
- SecurityHeaderTokenResolver.cs
- TdsParserStaticMethods.cs
- DriveInfo.cs
- NonVisualControlAttribute.cs
- TypeBuilder.cs
- DataGridAutoFormat.cs
- StrokeNodeOperations.cs
- ValueSerializer.cs
- StandardToolWindows.cs
- Blend.cs
- Table.cs
- SmtpReplyReaderFactory.cs
- XmlIgnoreAttribute.cs
- XmlAnyElementAttributes.cs
- ValidationResult.cs
- XmlName.cs
- CodeBinaryOperatorExpression.cs
- dataprotectionpermissionattribute.cs
- SerializationStore.cs
- MetadataArtifactLoaderResource.cs
- AliasedSlot.cs
- DocobjHost.cs
- ContactManager.cs
- RightsManagementEncryptionTransform.cs
- ListView.cs
- Scanner.cs
- WSFederationHttpSecurity.cs