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
- TextParagraphProperties.cs
- InternalConfirm.cs
- Int32CollectionValueSerializer.cs
- HttpCookiesSection.cs
- UIElement3DAutomationPeer.cs
- NavigatorOutput.cs
- SecurityCriticalDataForSet.cs
- ListControl.cs
- RightsManagementErrorHandler.cs
- PerformanceCounterLib.cs
- TreeViewImageKeyConverter.cs
- WindowsScrollBar.cs
- SrgsGrammarCompiler.cs
- HtmlHistory.cs
- FamilyMap.cs
- PrincipalPermission.cs
- LineMetrics.cs
- Validator.cs
- Point3DValueSerializer.cs
- NominalTypeEliminator.cs
- QueryRewriter.cs
- BaseTemplateBuildProvider.cs
- ToolStripItemCollection.cs
- SQLBinary.cs
- DesignUtil.cs
- ParagraphVisual.cs
- DictationGrammar.cs
- CopyCodeAction.cs
- FrameworkElement.cs
- BulletDecorator.cs
- mil_commands.cs
- PropertyGridView.cs
- TraceContextEventArgs.cs
- propertyentry.cs
- sitestring.cs
- NamespaceList.cs
- SerializationFieldInfo.cs
- TypefaceCollection.cs
- LinkButton.cs
- DataService.cs
- SemaphoreSecurity.cs
- DataColumnMappingCollection.cs
- TextDecoration.cs
- ImageIndexEditor.cs
- JapaneseLunisolarCalendar.cs
- CollectionView.cs
- X509IssuerSerialKeyIdentifierClause.cs
- PanelStyle.cs
- ToolboxItem.cs
- JsonFormatReaderGenerator.cs
- ObjectStateFormatter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SerializableAttribute.cs
- HyperlinkAutomationPeer.cs
- SamlDoNotCacheCondition.cs
- StateItem.cs
- SmiContext.cs
- OdbcError.cs
- FixedDocumentSequencePaginator.cs
- WindowsFormsSectionHandler.cs
- StateBag.cs
- WriteLineDesigner.xaml.cs
- RectValueSerializer.cs
- Constraint.cs
- ImageButton.cs
- MenuItemCollection.cs
- MissingSatelliteAssemblyException.cs
- CodeDomSerializerException.cs
- RotationValidation.cs
- CompilerState.cs
- DataRecordInfo.cs
- PersistenceProviderFactory.cs
- PageThemeCodeDomTreeGenerator.cs
- VisualStyleTypesAndProperties.cs
- ApplicationDirectory.cs
- X509ChainElement.cs
- X509Utils.cs
- MetadataSource.cs
- AuthenticateEventArgs.cs
- TextEditorTables.cs
- DbSetClause.cs
- FunctionImportElement.cs
- RecordsAffectedEventArgs.cs
- IDReferencePropertyAttribute.cs
- ConfigurationStrings.cs
- FixedSOMContainer.cs
- AppManager.cs
- TransferRequestHandler.cs
- CompiledScopeCriteria.cs
- Model3D.cs
- JpegBitmapDecoder.cs
- XmlTextEncoder.cs
- TextRangeEditLists.cs
- ComPlusTypeLoader.cs
- DataServiceBehavior.cs
- EndpointDiscoveryElement.cs
- HttpCookiesSection.cs
- BufferedGraphicsManager.cs
- DataViewManagerListItemTypeDescriptor.cs
- HtmlElement.cs