Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / DeploymentSection.cs / 2 / DeploymentSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DeploymentSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propRetail = new ConfigurationProperty("retail", typeof(bool),false,ConfigurationPropertyOptions.None); /**/ static DeploymentSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propRetail); } public DeploymentSection() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("retail", DefaultValue = false)] public bool Retail { get { return (bool)base[_propRetail]; } set { base[_propRetail] = value; } } private static bool s_hasCachedData; private static bool s_retail; internal static bool RetailInternal { get { if (!s_hasCachedData) { s_retail = RuntimeConfig.GetAppConfig().Deployment.Retail; s_hasCachedData = true; } return s_retail; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AuthenticateEventArgs.cs
- RowParagraph.cs
- EnumMemberAttribute.cs
- TransformValueSerializer.cs
- ForwardPositionQuery.cs
- WmlFormAdapter.cs
- HostExecutionContextManager.cs
- WebPartMenu.cs
- RegexFCD.cs
- StyleSelector.cs
- GroupBox.cs
- OneOfElement.cs
- safelinkcollection.cs
- EntityDataSourceQueryBuilder.cs
- MethodToken.cs
- TextElementAutomationPeer.cs
- RuntimeWrappedException.cs
- RawUIStateInputReport.cs
- MessageQueueInstaller.cs
- DecimalAnimationBase.cs
- VersionedStreamOwner.cs
- ValidateNames.cs
- PrintDialogException.cs
- UIElementIsland.cs
- TransferRequestHandler.cs
- NativeMethods.cs
- ScrollViewerAutomationPeer.cs
- Logging.cs
- TextReader.cs
- MultitargetingHelpers.cs
- EntityDataSourceDesignerHelper.cs
- BitmapVisualManager.cs
- MobileRedirect.cs
- CodeMemberProperty.cs
- SymbolType.cs
- Configuration.cs
- InfoCardListRequest.cs
- CodeMethodInvokeExpression.cs
- AccessDataSource.cs
- PropertyEmitterBase.cs
- GregorianCalendar.cs
- ScrollBarAutomationPeer.cs
- ExpressionCopier.cs
- EntityCommandCompilationException.cs
- GeneralTransform3D.cs
- LiteralControl.cs
- MultiDataTrigger.cs
- DataGridTable.cs
- VolatileEnlistmentState.cs
- ToolStripLocationCancelEventArgs.cs
- TextAction.cs
- CounterCreationDataCollection.cs
- PositiveTimeSpanValidatorAttribute.cs
- TraversalRequest.cs
- GeometryCombineModeValidation.cs
- RoutedPropertyChangedEventArgs.cs
- RtType.cs
- IResourceProvider.cs
- CachingParameterInspector.cs
- TemplateBindingExpressionConverter.cs
- DataGridColumnFloatingHeader.cs
- ConstraintStruct.cs
- mongolianshape.cs
- XPathParser.cs
- PersianCalendar.cs
- MultipartContentParser.cs
- FontCacheUtil.cs
- XmlDomTextWriter.cs
- ParserStreamGeometryContext.cs
- XmlCollation.cs
- Viewport3DVisual.cs
- SimplePropertyEntry.cs
- TextDecorationCollection.cs
- InvalidWMPVersionException.cs
- CounterSample.cs
- CompositionAdorner.cs
- SuppressIldasmAttribute.cs
- Int32RectValueSerializer.cs
- CompilerParameters.cs
- StorageModelBuildProvider.cs
- Separator.cs
- PopupRoot.cs
- UdpDiscoveryEndpoint.cs
- ArgIterator.cs
- DataBoundControlAdapter.cs
- TagMapCollection.cs
- AnonymousIdentificationModule.cs
- IdentityReference.cs
- CategoryNameCollection.cs
- EventManager.cs
- DmlSqlGenerator.cs
- OutputCacheProfileCollection.cs
- BaseDataBoundControl.cs
- SortedSetDebugView.cs
- TdsParser.cs
- CompilerTypeWithParams.cs
- ServiceBehaviorElement.cs
- CodeGeneratorOptions.cs
- EntityTypeEmitter.cs
- remotingproxy.cs