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
- BitmapImage.cs
- ping.cs
- BitmapEffectCollection.cs
- EntityProxyFactory.cs
- DataTemplateKey.cs
- SQLByte.cs
- XmlSchemaObject.cs
- Gdiplus.cs
- DataGridViewCellValueEventArgs.cs
- DeviceSpecificDialogCachedState.cs
- OracleTransaction.cs
- XmlIncludeAttribute.cs
- PointF.cs
- HtmlForm.cs
- DesigntimeLicenseContextSerializer.cs
- DateTimeStorage.cs
- ItemAutomationPeer.cs
- SmiEventSink_Default.cs
- KeyValueSerializer.cs
- CodeCastExpression.cs
- ViewGenResults.cs
- FileDialog.cs
- DataSetMappper.cs
- XPathMessageContext.cs
- DataGridCell.cs
- RNGCryptoServiceProvider.cs
- LocatorPartList.cs
- updatecommandorderer.cs
- RegexFCD.cs
- RequestUriProcessor.cs
- WindowsListBox.cs
- ResourceDictionaryCollection.cs
- Parameter.cs
- RewritingProcessor.cs
- PresentationTraceSources.cs
- LoginCancelEventArgs.cs
- Pointer.cs
- ValidationPropertyAttribute.cs
- TrustSection.cs
- XmlILOptimizerVisitor.cs
- XmlCollation.cs
- DataGridViewCellStateChangedEventArgs.cs
- HandlerFactoryCache.cs
- DetailsViewModeEventArgs.cs
- InputLanguage.cs
- XmlSchemaAppInfo.cs
- SqlMultiplexer.cs
- TouchDevice.cs
- CollectionsUtil.cs
- GlobalizationAssembly.cs
- NamespaceEmitter.cs
- SqlDataRecord.cs
- DbModificationCommandTree.cs
- SamlDoNotCacheCondition.cs
- DbConnectionPool.cs
- SqlProviderServices.cs
- KnownBoxes.cs
- LinqMaximalSubtreeNominator.cs
- ScrollBar.cs
- PreservationFileReader.cs
- SessionStateSection.cs
- EnumerableRowCollection.cs
- SqlGenericUtil.cs
- Array.cs
- HitTestDrawingContextWalker.cs
- MetadataItemEmitter.cs
- ListViewItem.cs
- Point3D.cs
- BitmapEffectDrawing.cs
- WindowsHyperlink.cs
- PipeConnection.cs
- ShapingEngine.cs
- FixUp.cs
- Module.cs
- TypeDescriptor.cs
- RawContentTypeMapper.cs
- ListView.cs
- ProxyWebPartManager.cs
- TrackingProfileCache.cs
- XmlLanguage.cs
- ContextMenuService.cs
- SapiInterop.cs
- ConnectionProviderAttribute.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SyndicationCategory.cs
- DefaultValueConverter.cs
- _emptywebproxy.cs
- MessageQueuePermissionAttribute.cs
- precedingquery.cs
- AdapterUtil.cs
- SymmetricKey.cs
- ConfigViewGenerator.cs
- ScriptDescriptor.cs
- SQLGuid.cs
- ReflectPropertyDescriptor.cs
- XmlName.cs
- DragDrop.cs
- WorkflowQueuingService.cs
- ThreadStaticAttribute.cs
- PrePrepareMethodAttribute.cs