Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Drawing.cs
- LookupNode.cs
- Comparer.cs
- ScrollChangedEventArgs.cs
- StringValidatorAttribute.cs
- DBConnectionString.cs
- DecimalAnimationUsingKeyFrames.cs
- SelectedGridItemChangedEvent.cs
- StructuralType.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DocumentSequence.cs
- XmlSchemaImport.cs
- Simplifier.cs
- SingleConverter.cs
- CopyNamespacesAction.cs
- AssemblyHash.cs
- wgx_render.cs
- ExportFileRequest.cs
- LineUtil.cs
- CodeChecksumPragma.cs
- AnimationClock.cs
- UInt64Converter.cs
- ConfigurationSectionGroupCollection.cs
- DataListItemEventArgs.cs
- MetafileHeaderEmf.cs
- DoubleAnimationBase.cs
- __FastResourceComparer.cs
- GroupBoxAutomationPeer.cs
- SqlParameter.cs
- _NetRes.cs
- streamingZipPartStream.cs
- CodeCastExpression.cs
- SafeViewOfFileHandle.cs
- Primitive.cs
- CodeNamespaceImportCollection.cs
- DataGridParentRows.cs
- DynamicRenderer.cs
- TrackPoint.cs
- AutoResetEvent.cs
- LinkAreaEditor.cs
- SplineQuaternionKeyFrame.cs
- StateManagedCollection.cs
- VScrollProperties.cs
- CompensatableTransactionScopeActivityDesigner.cs
- VScrollProperties.cs
- DependencyObjectValidator.cs
- OleDbEnumerator.cs
- LineGeometry.cs
- ValidatedControlConverter.cs
- DbConnectionStringBuilder.cs
- SqlUserDefinedTypeAttribute.cs
- XmlResolver.cs
- WebBrowserNavigatedEventHandler.cs
- BitmapScalingModeValidation.cs
- SrgsElementFactory.cs
- HttpRequest.cs
- SafeLocalMemHandle.cs
- TextSegment.cs
- Button.cs
- ToolStripDropDownItem.cs
- CacheAxisQuery.cs
- ImageSourceConverter.cs
- UserNameSecurityTokenProvider.cs
- SqlDependencyListener.cs
- sapiproxy.cs
- TrackBar.cs
- TextSchema.cs
- DockPattern.cs
- ProgressBar.cs
- UIElementParagraph.cs
- TextPointerBase.cs
- RouteParametersHelper.cs
- ToolStripControlHost.cs
- SourceFileBuildProvider.cs
- PolicyUnit.cs
- ActivityContext.cs
- ToggleProviderWrapper.cs
- DoubleAnimationBase.cs
- SystemColors.cs
- ServiceHostingEnvironmentSection.cs
- MemberRelationshipService.cs
- XmlSerializationGeneratedCode.cs
- StateItem.cs
- SchemaImporterExtension.cs
- CompletionBookmark.cs
- DataIdProcessor.cs
- XPathQilFactory.cs
- ProgressBar.cs
- DetailsViewCommandEventArgs.cs
- SoapEnvelopeProcessingElement.cs
- PasswordBox.cs
- ToolStripDesignerAvailabilityAttribute.cs
- CommonRemoteMemoryBlock.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- ComNativeDescriptor.cs
- DataDocumentXPathNavigator.cs
- LinqDataSourceDeleteEventArgs.cs
- _SingleItemRequestCache.cs
- DeflateEmulationStream.cs