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
- BackoffTimeoutHelper.cs
- RuntimeEnvironment.cs
- MarkupWriter.cs
- AsymmetricKeyExchangeFormatter.cs
- ComplexBindingPropertiesAttribute.cs
- CatalogPartCollection.cs
- RelatedEnd.cs
- BoundsDrawingContextWalker.cs
- sqlpipe.cs
- IPPacketInformation.cs
- TextCharacters.cs
- SQLDecimalStorage.cs
- NumberFunctions.cs
- WinEventWrap.cs
- EventLogReader.cs
- HealthMonitoringSection.cs
- LongTypeConverter.cs
- SectionInput.cs
- Sql8ConformanceChecker.cs
- HierarchicalDataSourceConverter.cs
- OracleRowUpdatingEventArgs.cs
- PackageFilter.cs
- FormsAuthentication.cs
- sqlpipe.cs
- CngAlgorithm.cs
- XmlSerializerNamespaces.cs
- DefaultTextStore.cs
- BrowserTree.cs
- OrCondition.cs
- HwndProxyElementProvider.cs
- ellipse.cs
- WebPageTraceListener.cs
- NavigatorOutput.cs
- XmlUtil.cs
- COM2Enum.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DataSpaceManager.cs
- ExpressionConverter.cs
- XmlSerializerVersionAttribute.cs
- HiddenField.cs
- DataGridViewRowPostPaintEventArgs.cs
- WorkflowDesignerMessageFilter.cs
- WebAdminConfigurationHelper.cs
- HelpEvent.cs
- DataServiceClientException.cs
- InfiniteIntConverter.cs
- DebugView.cs
- GridViewHeaderRowPresenter.cs
- InternalControlCollection.cs
- WindowInteractionStateTracker.cs
- TextTabProperties.cs
- SEHException.cs
- XmlValidatingReaderImpl.cs
- HttpFileCollection.cs
- DataGridTextBoxColumn.cs
- PageFunction.cs
- ByValueEqualityComparer.cs
- ServicePointManager.cs
- SerializerDescriptor.cs
- MarshalDirectiveException.cs
- SqlDataSourceView.cs
- SqlClientWrapperSmiStreamChars.cs
- DateTimeUtil.cs
- latinshape.cs
- TranslateTransform.cs
- HierarchicalDataBoundControl.cs
- ListBindingHelper.cs
- FontFamily.cs
- TransformCollection.cs
- NonVisualControlAttribute.cs
- Part.cs
- FileLogRecordHeader.cs
- ObjectStateEntryDbDataRecord.cs
- SimpleTypeResolver.cs
- LiteralLink.cs
- ActiveXSite.cs
- KeyTime.cs
- RegexRunnerFactory.cs
- ResourceLoader.cs
- InfoCardListRequest.cs
- coordinatorfactory.cs
- XpsFont.cs
- ByteStorage.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ExpressionQuoter.cs
- XmlSchemaSimpleTypeUnion.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TextCharacters.cs
- ImpersonateTokenRef.cs
- UnsafeNativeMethodsPenimc.cs
- ResXResourceWriter.cs
- ConnectorDragDropGlyph.cs
- ListBoxDesigner.cs
- LogAppendAsyncResult.cs
- CompositeTypefaceMetrics.cs
- Selection.cs
- NameValuePermission.cs
- SoapServerMessage.cs
- RuntimeConfigLKG.cs
- LinkLabel.cs