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
- RawMouseInputReport.cs
- OleDbCommand.cs
- StartUpEventArgs.cs
- ScrollEvent.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- EventItfInfo.cs
- ActivityDesigner.cs
- NotifyIcon.cs
- PeerNearMe.cs
- AppDomainFactory.cs
- RemotingAttributes.cs
- CultureInfo.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SplineKeyFrames.cs
- ReflectionPermission.cs
- ResourceReferenceKeyNotFoundException.cs
- AttributeAction.cs
- XmlSigningNodeWriter.cs
- BoolExpressionVisitors.cs
- Rule.cs
- ExecutionEngineException.cs
- WebBrowserUriTypeConverter.cs
- SQLUtility.cs
- PlainXmlSerializer.cs
- DataGridSortingEventArgs.cs
- ClaimTypes.cs
- Storyboard.cs
- QueryOutputWriter.cs
- EventTask.cs
- Contracts.cs
- SafePointer.cs
- HtmlElementErrorEventArgs.cs
- InfoCardListRequest.cs
- SystemUnicastIPAddressInformation.cs
- Msmq4PoisonHandler.cs
- RelationshipConstraintValidator.cs
- ChangesetResponse.cs
- DiscoveryClientReferences.cs
- StylusLogic.cs
- FileLevelControlBuilderAttribute.cs
- ClientConfigurationSystem.cs
- _ConnectionGroup.cs
- LocatorManager.cs
- EventLogPermissionAttribute.cs
- NamedObject.cs
- SystemEvents.cs
- SemanticValue.cs
- ManagementObjectSearcher.cs
- WindowsListView.cs
- BrowserCapabilitiesFactory.cs
- WebPartTransformerAttribute.cs
- ContextMenuAutomationPeer.cs
- DataGridViewColumnHeaderCell.cs
- BamlResourceContent.cs
- DbConnectionStringBuilder.cs
- CustomCredentialPolicy.cs
- FieldAccessException.cs
- ScriptingWebServicesSectionGroup.cs
- BinaryMethodMessage.cs
- CurrencyWrapper.cs
- HttpProcessUtility.cs
- _NegotiateClient.cs
- AvTraceDetails.cs
- TypeAccessException.cs
- ServiceChannelProxy.cs
- TracedNativeMethods.cs
- PenLineCapValidation.cs
- ClientScriptManagerWrapper.cs
- HighlightComponent.cs
- BlockCollection.cs
- CalculatedColumn.cs
- BinHexDecoder.cs
- BitmapEffectvisualstate.cs
- GPStream.cs
- CompareValidator.cs
- SystemGatewayIPAddressInformation.cs
- CheckoutException.cs
- DebugView.cs
- SignatureDescription.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- VisualBrush.cs
- TabControlAutomationPeer.cs
- PerformanceCountersElement.cs
- AvTraceDetails.cs
- DataGridRow.cs
- BasePattern.cs
- HttpResponse.cs
- SqlDataSourceCommandEventArgs.cs
- UserNamePasswordServiceCredential.cs
- CollectionViewGroup.cs
- TreeIterator.cs
- CrossContextChannel.cs
- TextModifierScope.cs
- XDRSchema.cs
- XmlQualifiedName.cs
- AutomationPatternInfo.cs
- OutputScopeManager.cs
- TextBoxBase.cs
- DesignSurface.cs
- Console.cs