Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / DeploymentSection.cs / 1 / 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
- FlowLayoutPanel.cs
- SqlProviderUtilities.cs
- DesignerSerializationOptionsAttribute.cs
- ClearTypeHintValidation.cs
- FixUp.cs
- GridSplitter.cs
- TextHidden.cs
- GridView.cs
- BasicExpressionVisitor.cs
- SafeBitVector32.cs
- AxHost.cs
- ContentElement.cs
- ToolStripTextBox.cs
- ServiceHttpHandlerFactory.cs
- BrowserCapabilitiesFactoryBase.cs
- StorageEntitySetMapping.cs
- mediapermission.cs
- UntrustedRecipientException.cs
- FixedSOMImage.cs
- PrintControllerWithStatusDialog.cs
- XamlReader.cs
- Duration.cs
- SupportsEventValidationAttribute.cs
- SystemNetworkInterface.cs
- DataBindingHandlerAttribute.cs
- PageParser.cs
- Expression.DebuggerProxy.cs
- DataGridRow.cs
- NamespaceCollection.cs
- TouchFrameEventArgs.cs
- RegistryPermission.cs
- UnwrappedTypesXmlSerializerManager.cs
- SupportingTokenProviderSpecification.cs
- SocketException.cs
- ColumnBinding.cs
- ByteKeyFrameCollection.cs
- Point4DConverter.cs
- SetterBaseCollection.cs
- AppDomainProtocolHandler.cs
- MulticastIPAddressInformationCollection.cs
- ProviderCommandInfoUtils.cs
- GradientBrush.cs
- CryptoHandle.cs
- FixedSOMPage.cs
- MexTcpBindingElement.cs
- DesignerCategoryAttribute.cs
- DataBindEngine.cs
- JsonStringDataContract.cs
- StringOutput.cs
- OrCondition.cs
- EventHandlersStore.cs
- DebuggerAttributes.cs
- StylusPointProperties.cs
- OleCmdHelper.cs
- CorruptStoreException.cs
- DecimalFormatter.cs
- SessionStateSection.cs
- ExpressionBindings.cs
- CellParagraph.cs
- PasswordBoxAutomationPeer.cs
- Helpers.cs
- StrongNamePublicKeyBlob.cs
- ContractNamespaceAttribute.cs
- TabControlAutomationPeer.cs
- HtmlFormWrapper.cs
- ConfigurationSettings.cs
- MetaForeignKeyColumn.cs
- JulianCalendar.cs
- SqlDataReader.cs
- InvalidWorkflowException.cs
- XmlNodeComparer.cs
- ScalarRestriction.cs
- ReaderWriterLockSlim.cs
- GridItemPattern.cs
- SspiSecurityTokenParameters.cs
- SecureConversationServiceElement.cs
- DataGridViewElement.cs
- DefaultTextStore.cs
- Encoder.cs
- PropertySet.cs
- UxThemeWrapper.cs
- AttributeTable.cs
- SmtpLoginAuthenticationModule.cs
- DesignerHost.cs
- FixUpCollection.cs
- AdornerLayer.cs
- FixUp.cs
- InkPresenter.cs
- DesignerOptions.cs
- DesignerTransaction.cs
- FixedStringLookup.cs
- TextRangeSerialization.cs
- DocumentViewer.cs
- NotifyParentPropertyAttribute.cs
- ThreadAbortException.cs
- SqlDataSource.cs
- ToolStripRendererSwitcher.cs
- DataGrid.cs
- BitmapEffectCollection.cs
- _LazyAsyncResult.cs