Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / DeploymentSection.cs / 5 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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; } } } } // 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
- TextPenaltyModule.cs
- MultiAsyncResult.cs
- DataServiceQueryProvider.cs
- TextParagraphCache.cs
- MouseEvent.cs
- SqlNotificationEventArgs.cs
- ClientOptions.cs
- StatusBarAutomationPeer.cs
- XmlWellformedWriter.cs
- TextModifierScope.cs
- SendAgentStatusRequest.cs
- Setter.cs
- SelectionHighlightInfo.cs
- Sql8ConformanceChecker.cs
- codemethodreferenceexpression.cs
- RepeaterItem.cs
- XmlCDATASection.cs
- KnownBoxes.cs
- SHA1.cs
- LineServices.cs
- AssemblyBuilder.cs
- SafeReadContext.cs
- WebPartAddingEventArgs.cs
- AdRotator.cs
- HostedElements.cs
- EntityCommandExecutionException.cs
- DeviceContexts.cs
- ConfigurationStrings.cs
- input.cs
- ScaleTransform3D.cs
- Light.cs
- UniqueConstraint.cs
- WindowsRegion.cs
- UnionQueryOperator.cs
- CrossAppDomainChannel.cs
- NotImplementedException.cs
- OledbConnectionStringbuilder.cs
- Formatter.cs
- DataRelationPropertyDescriptor.cs
- BezierSegment.cs
- ListViewInsertionMark.cs
- ObjectSecurity.cs
- ResourceDescriptionAttribute.cs
- DataControlField.cs
- XmlQueryContext.cs
- HttpListener.cs
- InkCanvas.cs
- TypeCacheManager.cs
- SizeFConverter.cs
- baseshape.cs
- securestring.cs
- XmlBindingWorker.cs
- RuntimeCompatibilityAttribute.cs
- ColumnHeaderCollectionEditor.cs
- TraceSource.cs
- ControlUtil.cs
- LicenseManager.cs
- AssociationTypeEmitter.cs
- AssemblyName.cs
- ObjectDataSourceMethodEventArgs.cs
- Invariant.cs
- COM2TypeInfoProcessor.cs
- SqlRetyper.cs
- XmlRawWriter.cs
- DataBoundLiteralControl.cs
- ToolStripDesignerUtils.cs
- WebRequestModulesSection.cs
- SystemNetworkInterface.cs
- XmlSchemaImporter.cs
- AuthenticationSchemesHelper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TextServicesProperty.cs
- UnknownWrapper.cs
- RoutedUICommand.cs
- FontNamesConverter.cs
- FlowPosition.cs
- DocumentViewerHelper.cs
- DockProviderWrapper.cs
- GridViewRow.cs
- ProtectedProviderSettings.cs
- SqlBuffer.cs
- UInt64.cs
- SizeConverter.cs
- XmlSchemaDocumentation.cs
- TextRenderer.cs
- WebBrowser.cs
- OutputCacheSection.cs
- WindowsSecurityTokenAuthenticator.cs
- TreeViewCancelEvent.cs
- FormClosedEvent.cs
- Dispatcher.cs
- StatusBar.cs
- WebPartVerbsEventArgs.cs
- InvariantComparer.cs
- XmlSchemaAttributeGroupRef.cs
- _BufferOffsetSize.cs
- ZipIORawDataFileBlock.cs
- Or.cs
- GridViewCellAutomationPeer.cs
- CharUnicodeInfo.cs