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
- ToolStripDropDownClosingEventArgs.cs
- DtrList.cs
- ConnectionInterfaceCollection.cs
- TypeGeneratedEventArgs.cs
- UpdatePanelTriggerCollection.cs
- CodeComment.cs
- InfocardClientCredentials.cs
- _CommandStream.cs
- VirtualDirectoryMappingCollection.cs
- TraceFilter.cs
- ScalarConstant.cs
- SoapSchemaImporter.cs
- AlternationConverter.cs
- BrowserTree.cs
- NameService.cs
- ViewManager.cs
- ExternalFile.cs
- StringKeyFrameCollection.cs
- EntityKey.cs
- RectAnimationUsingKeyFrames.cs
- unsafenativemethodstextservices.cs
- PropertyFilterAttribute.cs
- MulticastOption.cs
- TextControl.cs
- DetailsViewDeleteEventArgs.cs
- Error.cs
- CompareValidator.cs
- SendAgentStatusRequest.cs
- BasicViewGenerator.cs
- WindowsHyperlink.cs
- XmlObjectSerializer.cs
- DateTimeOffsetConverter.cs
- TextureBrush.cs
- IfJoinedCondition.cs
- TextInfo.cs
- WorkflowApplicationCompletedException.cs
- ProcessHostFactoryHelper.cs
- OLEDB_Util.cs
- SqlFlattener.cs
- CodeMethodReturnStatement.cs
- AsyncResult.cs
- EdmItemCollection.OcAssemblyCache.cs
- SortDescription.cs
- DesignTimeVisibleAttribute.cs
- TraceContextEventArgs.cs
- IfAction.cs
- PathFigure.cs
- StateDesigner.CommentLayoutGlyph.cs
- QueryComponents.cs
- AutomationPropertyInfo.cs
- CoreSwitches.cs
- TableLayoutStyle.cs
- CurrencyWrapper.cs
- ConditionChanges.cs
- RequestCacheManager.cs
- AnnotationMap.cs
- IgnoreFlushAndCloseStream.cs
- TypeUtil.cs
- PropertyValidationContext.cs
- WebPartDisplayMode.cs
- ClientOperation.cs
- WebPartEditVerb.cs
- DispatcherBuilder.cs
- PermissionSetEnumerator.cs
- Publisher.cs
- LayoutEditorPart.cs
- ThrowOnMultipleAssignment.cs
- EnvelopedSignatureTransform.cs
- DBNull.cs
- JavascriptCallbackBehaviorAttribute.cs
- _FixedSizeReader.cs
- AppModelKnownContentFactory.cs
- IndexedWhereQueryOperator.cs
- Automation.cs
- RenamedEventArgs.cs
- ThrowOnMultipleAssignment.cs
- COM2ExtendedTypeConverter.cs
- ProviderMetadataCachedInformation.cs
- WebPartConnectionsCancelVerb.cs
- BindingObserver.cs
- Mutex.cs
- SafeLocalMemHandle.cs
- GlyphRunDrawing.cs
- UnsignedPublishLicense.cs
- FontEditor.cs
- ExpandCollapseIsCheckedConverter.cs
- MsmqBindingElementBase.cs
- StylusButtonCollection.cs
- EUCJPEncoding.cs
- ItemCollection.cs
- ILGenerator.cs
- MsmqProcessProtocolHandler.cs
- SafeReversePInvokeHandle.cs
- CodeAttributeArgumentCollection.cs
- FrameworkTemplate.cs
- Privilege.cs
- TimeSpanConverter.cs
- OrderByQueryOptionExpression.cs
- XmlAttributeOverrides.cs
- Image.cs