Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlMapping.cs
- MouseCaptureWithinProperty.cs
- followingsibling.cs
- ToolStripDropDownButton.cs
- DynamicQueryableWrapper.cs
- WebPartMenuStyle.cs
- SchemaCollectionCompiler.cs
- ToolStripDropDownClosedEventArgs.cs
- _Win32.cs
- Translator.cs
- DesignerTransaction.cs
- Button.cs
- UnmanagedMarshal.cs
- QilPatternVisitor.cs
- ResolveNextArgumentWorkItem.cs
- TypefaceMap.cs
- IndexOutOfRangeException.cs
- LinkButton.cs
- TypedReference.cs
- Math.cs
- manifestimages.cs
- HtmlEmptyTagControlBuilder.cs
- RadioButtonStandardAdapter.cs
- XmlCharType.cs
- RSAPKCS1SignatureFormatter.cs
- DataGridViewCellPaintingEventArgs.cs
- FamilyTypefaceCollection.cs
- BeginStoryboard.cs
- VisualStateManager.cs
- ProofTokenCryptoHandle.cs
- CompilerWrapper.cs
- XmlSchemaAny.cs
- NavigationProgressEventArgs.cs
- SymbolResolver.cs
- WpfGeneratedKnownProperties.cs
- BasicAsyncResult.cs
- _CacheStreams.cs
- Main.cs
- MembershipUser.cs
- CodeValidator.cs
- RequestQueryParser.cs
- TypeElement.cs
- FocusWithinProperty.cs
- XmlIlTypeHelper.cs
- RemoteHelper.cs
- Binding.cs
- CanonicalizationDriver.cs
- RayHitTestParameters.cs
- IListConverters.cs
- CodeAssignStatement.cs
- NullRuntimeConfig.cs
- ReliableSession.cs
- BamlStream.cs
- PointCollectionConverter.cs
- ExceptionHelpers.cs
- invalidudtexception.cs
- ControlParameter.cs
- ItemChangedEventArgs.cs
- Decimal.cs
- Application.cs
- AssemblyBuilder.cs
- NameObjectCollectionBase.cs
- XmlIgnoreAttribute.cs
- ComponentChangedEvent.cs
- Helper.cs
- ButtonBaseAdapter.cs
- PropertyContainer.cs
- FrameworkContextData.cs
- ImageSourceValueSerializer.cs
- ImageListUtils.cs
- WebBrowserHelper.cs
- SecurityTokenTypes.cs
- ContourSegment.cs
- DiscoveryClientProtocol.cs
- RequestCacheEntry.cs
- ValueTypeIndexerReference.cs
- Type.cs
- SqlProfileProvider.cs
- ResponseBodyWriter.cs
- PolyQuadraticBezierSegment.cs
- ChainOfDependencies.cs
- Hash.cs
- IndexerHelper.cs
- TabControl.cs
- elementinformation.cs
- ProcessingInstructionAction.cs
- CodeDomConfigurationHandler.cs
- ByteAnimationUsingKeyFrames.cs
- codemethodreferenceexpression.cs
- StylesEditorDialog.cs
- TemplateKey.cs
- SkipQueryOptionExpression.cs
- ListBoxItem.cs
- RubberbandSelector.cs
- SslStream.cs
- SafeMemoryMappedFileHandle.cs
- InvalidEnumArgumentException.cs
- Hash.cs
- XmlSchemaInfo.cs
- TransformGroup.cs