Code:
/ DotNET / DotNET / 8.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
- MimeParameterWriter.cs
- ColumnTypeConverter.cs
- Converter.cs
- Rule.cs
- WebUtil.cs
- SkewTransform.cs
- XmlDataSource.cs
- PostBackTrigger.cs
- DispatcherSynchronizationContext.cs
- util.cs
- RectAnimation.cs
- MeshGeometry3D.cs
- HandleCollector.cs
- UriScheme.cs
- IconConverter.cs
- RectangleHotSpot.cs
- VersionedStream.cs
- ClientUtils.cs
- EntityDataSourceContainerNameItem.cs
- objectresult_tresulttype.cs
- DomainConstraint.cs
- ProgressBarAutomationPeer.cs
- XmlUtf8RawTextWriter.cs
- FloatAverageAggregationOperator.cs
- ReachPageContentCollectionSerializerAsync.cs
- ReadonlyMessageFilter.cs
- MenuItemStyleCollection.cs
- ModuleElement.cs
- InProcStateClientManager.cs
- PropertyValueUIItem.cs
- TemplateControlBuildProvider.cs
- SecurityTokenTypes.cs
- SqlCrossApplyToCrossJoin.cs
- ViewUtilities.cs
- MailSettingsSection.cs
- DownloadProgressEventArgs.cs
- InputReportEventArgs.cs
- Regex.cs
- TextPointerBase.cs
- ToolStrip.cs
- Exceptions.cs
- PropertyGeneratedEventArgs.cs
- StorageEndPropertyMapping.cs
- WebPartVerbCollection.cs
- QuaternionRotation3D.cs
- MouseActionValueSerializer.cs
- ModuleBuilder.cs
- GB18030Encoding.cs
- EntityDataSourceWizardForm.cs
- IssuanceLicense.cs
- panel.cs
- SimpleTableProvider.cs
- ContentPlaceHolder.cs
- PolyLineSegment.cs
- EntityProviderServices.cs
- ProfilePropertySettings.cs
- DataDocumentXPathNavigator.cs
- DispatchChannelSink.cs
- TreeNode.cs
- ActivityExecutorSurrogate.cs
- XmlValidatingReader.cs
- ViewManager.cs
- Quad.cs
- TimeSpanSecondsConverter.cs
- AuthenticationModuleElement.cs
- EventManager.cs
- Vector3D.cs
- Metafile.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- Int32Converter.cs
- ResXResourceWriter.cs
- StickyNoteHelper.cs
- NamespaceDisplayAutomationPeer.cs
- QueueProcessor.cs
- Constraint.cs
- Content.cs
- XPathAncestorIterator.cs
- Message.cs
- ClientSettingsSection.cs
- SecurityTokenContainer.cs
- ScriptReferenceEventArgs.cs
- StaticExtensionConverter.cs
- AsyncCompletedEventArgs.cs
- MetadataPropertyAttribute.cs
- Config.cs
- DynamicMethod.cs
- KeyValueInternalCollection.cs
- IndentedWriter.cs
- WeakRefEnumerator.cs
- XsltQilFactory.cs
- ColorTranslator.cs
- CheckableControlBaseAdapter.cs
- ScaleTransform3D.cs
- WebPartManager.cs
- DetailsView.cs
- TextTreeObjectNode.cs
- PngBitmapDecoder.cs
- DiscoveryDocumentReference.cs
- FixedSOMLineRanges.cs
- RowUpdatingEventArgs.cs