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
- HttpCacheVary.cs
- TransportReplyChannelAcceptor.cs
- HwndHostAutomationPeer.cs
- BaseAddressElementCollection.cs
- DesignerSerializerAttribute.cs
- DataPagerFieldCollection.cs
- HashMembershipCondition.cs
- FileVersionInfo.cs
- CleanUpVirtualizedItemEventArgs.cs
- HwndSource.cs
- AutomationPeer.cs
- FirstQueryOperator.cs
- XPathException.cs
- Errors.cs
- ItemsChangedEventArgs.cs
- PerfProviderCollection.cs
- ColorDialog.cs
- VirtualizingPanel.cs
- KnownAssemblyEntry.cs
- TransactionFilter.cs
- MimePart.cs
- DataViewManager.cs
- BindingElement.cs
- ProfileGroupSettings.cs
- StreamHelper.cs
- XsltFunctions.cs
- TaskCanceledException.cs
- SafeThreadHandle.cs
- sqlser.cs
- XmlBindingWorker.cs
- ProfileEventArgs.cs
- CollectionsUtil.cs
- Module.cs
- XhtmlTextWriter.cs
- MethodCallConverter.cs
- ResXBuildProvider.cs
- DbBuffer.cs
- HighContrastHelper.cs
- WebPartConnectionsDisconnectVerb.cs
- PixelShader.cs
- NameTable.cs
- PostBackOptions.cs
- SqlUDTStorage.cs
- CancellationTokenSource.cs
- DefaultValueConverter.cs
- FactoryGenerator.cs
- EnumMember.cs
- HttpPostClientProtocol.cs
- EntityCollection.cs
- IndexedEnumerable.cs
- PreparingEnlistment.cs
- SimpleWebHandlerParser.cs
- Solver.cs
- XPathQilFactory.cs
- ObservableDictionary.cs
- wmiprovider.cs
- InfoCardSymmetricCrypto.cs
- MimeMapping.cs
- BitVector32.cs
- SqlXmlStorage.cs
- GraphicsPath.cs
- HiddenField.cs
- ObjectReaderCompiler.cs
- SafeTokenHandle.cs
- CachingHintValidation.cs
- ConfigurationErrorsException.cs
- MessageRpc.cs
- WhitespaceRule.cs
- CellTreeNodeVisitors.cs
- Span.cs
- COM2ICategorizePropertiesHandler.cs
- SetStoryboardSpeedRatio.cs
- IndexedString.cs
- VScrollProperties.cs
- BooleanToVisibilityConverter.cs
- SmtpDateTime.cs
- DbUpdateCommandTree.cs
- CodeCatchClause.cs
- Int16Animation.cs
- SchemaTableOptionalColumn.cs
- Preprocessor.cs
- ToolStripContainer.cs
- IsolatedStorageFilePermission.cs
- ComAdminInterfaces.cs
- FormsAuthenticationCredentials.cs
- WebColorConverter.cs
- SpellerStatusTable.cs
- ClientConfigurationSystem.cs
- OleDbConnectionInternal.cs
- SecurityValidationBehavior.cs
- NamespaceMapping.cs
- ServiceDesigner.xaml.cs
- BuildProviderCollection.cs
- ContextMarshalException.cs
- EventOpcode.cs
- WhitespaceRuleReader.cs
- MultipleViewPattern.cs
- TypeDescriptor.cs
- ClosureBinding.cs
- DataControlFieldCell.cs