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
- WebScriptMetadataFormatter.cs
- _AutoWebProxyScriptHelper.cs
- TableAutomationPeer.cs
- Metafile.cs
- DataGridColumnHeaderAutomationPeer.cs
- RefExpr.cs
- Context.cs
- sqlpipe.cs
- InputMethod.cs
- Control.cs
- LayoutInformation.cs
- RadioButton.cs
- AlternateViewCollection.cs
- SID.cs
- PartialCachingAttribute.cs
- EntityProviderFactory.cs
- BuildProvidersCompiler.cs
- ThreadAbortException.cs
- XmlDigitalSignatureProcessor.cs
- LessThan.cs
- CngAlgorithmGroup.cs
- BaseParagraph.cs
- ColorKeyFrameCollection.cs
- ProxyFragment.cs
- Rotation3D.cs
- SHA1Managed.cs
- CodeGen.cs
- TextParaClient.cs
- UnmanagedMarshal.cs
- RuleSettings.cs
- Function.cs
- TypeTypeConverter.cs
- ArglessEventHandlerProxy.cs
- QueryStringParameter.cs
- SQLDateTimeStorage.cs
- WindowClosedEventArgs.cs
- StdRegProviderWrapper.cs
- CancelRequestedRecord.cs
- ReflectionPermission.cs
- DataGridViewRowConverter.cs
- Merger.cs
- ListChangedEventArgs.cs
- ADMembershipProvider.cs
- SettingsPropertyCollection.cs
- LinkLabel.cs
- ConnectionString.cs
- CoreSwitches.cs
- LayoutTable.cs
- ObjectSet.cs
- Vector3D.cs
- GenericPrincipal.cs
- XPathNode.cs
- CodeBlockBuilder.cs
- NetPipeSectionData.cs
- MetadataLocation.cs
- ConstructorNeedsTagAttribute.cs
- WebServiceEnumData.cs
- ISAPIApplicationHost.cs
- EventSinkHelperWriter.cs
- AsyncStreamReader.cs
- NetDataContractSerializer.cs
- InternalPermissions.cs
- MsmqIntegrationBinding.cs
- IFlowDocumentViewer.cs
- DataSysAttribute.cs
- RefExpr.cs
- SendMessageRecord.cs
- MetadataPropertyvalue.cs
- ClientBuildManagerCallback.cs
- ContextStack.cs
- ArrayWithOffset.cs
- HtmlControl.cs
- ScaleTransform3D.cs
- ErrorTolerantObjectWriter.cs
- HMACMD5.cs
- RelationshipEnd.cs
- ApplicationException.cs
- ButtonDesigner.cs
- KernelTypeValidation.cs
- DefaultPrintController.cs
- Code.cs
- ResourceContainerWrapper.cs
- MessageBox.cs
- DynamicUpdateCommand.cs
- HwndTarget.cs
- NameTable.cs
- SiteMapProvider.cs
- ToolStripButton.cs
- ItemDragEvent.cs
- SingleObjectCollection.cs
- X509IssuerSerialKeyIdentifierClause.cs
- EditorZoneAutoFormat.cs
- CssClassPropertyAttribute.cs
- Image.cs
- PackWebRequestFactory.cs
- EntityDataSourceContextCreatingEventArgs.cs
- GridLength.cs
- CodeValidator.cs
- KeyConverter.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs